kivy: remove context menus, cleanup unused files
This commit is contained in:
@@ -98,6 +98,11 @@ Builder.load_string('''
|
||||
height: '48dp'
|
||||
icon: 'atlas://electrum/gui/kivy/theming/light/qrcode'
|
||||
on_release: root.show_qr()
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
text: _('Label')
|
||||
on_release: root.label_dialog()
|
||||
Button:
|
||||
size_hint: 0.5, None
|
||||
height: '48dp'
|
||||
@@ -271,3 +276,14 @@ class TxDialog(Factory.Popup):
|
||||
self.dismiss()
|
||||
d = Question(question, on_prompt)
|
||||
d.open()
|
||||
|
||||
def label_dialog(self):
|
||||
from .label_dialog import LabelDialog
|
||||
key = self.tx.txid()
|
||||
text = self.app.wallet.get_label(key)
|
||||
def callback(text):
|
||||
self.app.wallet.set_label(key, text)
|
||||
self.update()
|
||||
self.app.history_screen.update()
|
||||
d = LabelDialog(_('Enter Transaction Label'), text, callback)
|
||||
d.open()
|
||||
|
||||
Reference in New Issue
Block a user