1
0

kivy: remove context menus, cleanup unused files

This commit is contained in:
ThomasV
2019-08-23 12:15:42 +02:00
parent 587f8aa487
commit e9c32bad19
11 changed files with 206 additions and 601 deletions

View File

@@ -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()