kivy: define app.wallet_name
This commit is contained in:
parent
0ccc812f86
commit
9cc76bc969
|
@ -361,6 +361,7 @@ BoxLayout:
|
|||
app_icon_width: '100dp'
|
||||
with_previous: False
|
||||
size_hint_x: None
|
||||
on_release: app.popup_dialog('status')
|
||||
|
||||
ActionButton:
|
||||
id: action_status
|
||||
|
@ -370,7 +371,7 @@ BoxLayout:
|
|||
color: 0.7, 0.7, 0.7, 1
|
||||
text: app.status
|
||||
font_size: '22dp'
|
||||
minimum_width: '1dp'
|
||||
#minimum_width: '1dp'
|
||||
on_release: app.popup_dialog('status')
|
||||
|
||||
ActionOverflow:
|
||||
|
|
|
@ -213,6 +213,8 @@ class ElectrumWindow(App):
|
|||
self._settings_dialog = None
|
||||
self._password_dialog = None
|
||||
|
||||
def wallet_name(self):
|
||||
return os.path.basename(self.wallet.storage.path) if self.wallet else ' '
|
||||
|
||||
def on_pr(self, pr):
|
||||
if pr.verify(self.contacts):
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#:import os os
|
||||
|
||||
Popup:
|
||||
title: "Electrum"
|
||||
confirmed: 0
|
||||
|
@ -26,7 +24,7 @@ Popup:
|
|||
spacing: '10dp'
|
||||
BoxLabel:
|
||||
text: _('Wallet Name')
|
||||
value: os.path.basename(app.wallet.storage.path)
|
||||
value: app.wallet_name()
|
||||
BoxLabel:
|
||||
text: _("Wallet type:")
|
||||
value: app.wallet.wallet_type
|
||||
|
|
Loading…
Reference in New Issue