From c5883c7cdb6c78fb909d804210544fcf0c0a484e Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Wed, 8 Feb 2023 12:51:24 +0100 Subject: [PATCH] text guis low hanging fruit --- electrum/gui/stdio.py | 4 ++-- electrum/gui/text.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/electrum/gui/stdio.py b/electrum/gui/stdio.py index 4f30faddb..ef77a8bf5 100644 --- a/electrum/gui/stdio.py +++ b/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): diff --git a/electrum/gui/text.py b/electrum/gui/text.py index 4316fa20a..4f08d18fc 100644 --- a/electrum/gui/text.py +++ b/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()