text guis low hanging fruit
This commit is contained in:
@@ -25,7 +25,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
|||||||
def __init__(self, *, config, daemon, plugins):
|
def __init__(self, *, config, daemon, plugins):
|
||||||
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
|
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
|
||||||
self.network = daemon.network
|
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():
|
if not storage.file_exists():
|
||||||
print("Wallet not found. try 'electrum create'")
|
print("Wallet not found. try 'electrum create'")
|
||||||
exit()
|
exit()
|
||||||
@@ -68,7 +68,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
|||||||
self.updated()
|
self.updated()
|
||||||
|
|
||||||
@event_listener
|
@event_listener
|
||||||
def on_event_banner(self):
|
def on_event_banner(self, *args):
|
||||||
self.print_banner()
|
self.print_banner()
|
||||||
|
|
||||||
def main_command(self):
|
def main_command(self):
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ class ElectrumGui(BaseElectrumGui, EventListener):
|
|||||||
def __init__(self, *, config: 'SimpleConfig', daemon: 'Daemon', plugins: 'Plugins'):
|
def __init__(self, *, config: 'SimpleConfig', daemon: 'Daemon', plugins: 'Plugins'):
|
||||||
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
|
BaseElectrumGui.__init__(self, config=config, daemon=daemon, plugins=plugins)
|
||||||
self.network = daemon.network
|
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():
|
if not storage.file_exists():
|
||||||
print("Wallet not found. try 'electrum create'")
|
print("Wallet not found. try 'electrum create'")
|
||||||
exit()
|
exit()
|
||||||
|
|||||||
Reference in New Issue
Block a user