1
0

kivy: move wallets dialog

This commit is contained in:
ThomasV
2015-12-18 15:03:38 +01:00
parent e46b00bb39
commit ee4ccd9b1b
4 changed files with 40 additions and 10 deletions

View File

@@ -332,10 +332,6 @@ class ElectrumWindow(App):
d = LabelDialog(_('Enter wallet name'), '', f)
d.open()
def settings_dialog(self):
from uix.dialogs.settings import SettingsDialog
d = SettingsDialog(self)
d.open()
def on_stop(self):
self.stop_wallet()
@@ -395,7 +391,13 @@ class ElectrumWindow(App):
def popup_dialog(self, name):
if name == 'settings':
self.settings_dialog()
from uix.dialogs.settings import SettingsDialog
d = SettingsDialog(self)
d.open()
elif name == 'wallets':
from uix.dialogs.wallets import WalletDialog
d = WalletDialog()
d.open()
else:
popup = Builder.load_file('gui/kivy/uix/ui_screens/'+name+'.kv')
popup.open()