Browse Source

text guis low hanging fruit

master
Sander van Grieken 3 years ago
parent
commit
c5883c7cdb
  1. 4
      electrum/gui/stdio.py
  2. 2
      electrum/gui/text.py

4
electrum/gui/stdio.py

@ -25,7 +25,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
def __init__(self, *, config, daemon, plugins):
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
self.network = daemon.network
storage = WalletStorage(config.get_wallet_path())
storage = WalletStorage(config.get_wallet_path(use_gui_last_wallet=True))
if not storage.file_exists():
print("Wallet not found. try 'electrum create'")
exit()
@ -68,7 +68,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
self.updated()
@event_listener
def on_event_banner(self):
def on_event_banner(self, *args):
self.print_banner()
def main_command(self):

2
electrum/gui/text.py

@ -52,7 +52,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
def __init__(self, *, config: 'SimpleConfig', daemon: 'Daemon', plugins: 'Plugins'):
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
self.network = daemon.network
storage = WalletStorage(config.get_wallet_path())
storage = WalletStorage(config.get_wallet_path(use_gui_last_wallet=True))
if not storage.file_exists():
print("Wallet not found. try 'electrum create'")
exit()

Loading…
Cancel
Save