mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 17:01:34 +00:00
fix #6194
This commit is contained in:
parent
6058829870
commit
8cb36cb969
1 changed files with 8 additions and 10 deletions
|
@ -20,7 +20,8 @@ Builder.load_string('''
|
||||||
amount: 0
|
amount: 0
|
||||||
title: ''
|
title: ''
|
||||||
description:''
|
description:''
|
||||||
data: ''
|
is_lightning: False
|
||||||
|
key:''
|
||||||
warning: ''
|
warning: ''
|
||||||
status_str: ''
|
status_str: ''
|
||||||
status_color: 1,1,1,1
|
status_color: 1,1,1,1
|
||||||
|
@ -41,16 +42,13 @@ Builder.load_string('''
|
||||||
touch = args[1]
|
touch = args[1]
|
||||||
if self.collide_point(*touch.pos): self.shaded = not self.shaded
|
if self.collide_point(*touch.pos): self.shaded = not self.shaded
|
||||||
TopLabel:
|
TopLabel:
|
||||||
text: _('Data')+ ':'
|
text: _('Description') + ': ' + root.description or _('None')
|
||||||
RefLabel:
|
|
||||||
data: root.data
|
|
||||||
name: _('Request data')
|
|
||||||
TopLabel:
|
|
||||||
text: _('Description') + ':'
|
|
||||||
RefLabel:
|
|
||||||
data: root.description or _('No description')
|
|
||||||
TopLabel:
|
TopLabel:
|
||||||
text: _('Amount') + ': ' + app.format_amount_and_units(root.amount)
|
text: _('Amount') + ': ' + app.format_amount_and_units(root.amount)
|
||||||
|
TopLabel:
|
||||||
|
text: (_('Address') if not root.is_lightning else _('Payment hash')) + ': '
|
||||||
|
RefLabel:
|
||||||
|
text: root.key
|
||||||
TopLabel:
|
TopLabel:
|
||||||
text: _('Status') + ': ' + root.status_str
|
text: _('Status') + ': ' + root.status_str
|
||||||
color: root.status_color
|
color: root.status_color
|
||||||
|
@ -95,7 +93,7 @@ class RequestDialog(Factory.Popup):
|
||||||
r = self.app.wallet.get_request(key)
|
r = self.app.wallet.get_request(key)
|
||||||
self.is_lightning = r.is_lightning()
|
self.is_lightning = r.is_lightning()
|
||||||
self.data = r.invoice if self.is_lightning else self.app.wallet.get_request_URI(r)
|
self.data = r.invoice if self.is_lightning else self.app.wallet.get_request_URI(r)
|
||||||
self.amount = r.amount
|
self.amount = r.amount or 0
|
||||||
self.description = r.message
|
self.description = r.message
|
||||||
self.update_status()
|
self.update_status()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue