1
0

text guis low hanging fruit

This commit is contained in:
Sander van Grieken
2023-02-08 12:51:24 +01:00
parent f3b3a40ffe
commit c5883c7cdb
2 changed files with 3 additions and 3 deletions

View File

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

View File

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