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