Browse Source

kivy: fix when running with --offline

patch-4
SomberNight 3 years ago
parent
commit
bf6400ae30
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 1
      electrum/gui/kivy/main.kv
  2. 2
      electrum/gui/kivy/main_window.py

1
electrum/gui/kivy/main.kv

@ -530,6 +530,7 @@ BoxLayout:
ActionOvrButton:
name: 'network'
text: _('Network')
disabled: app.network is None
ActionOvrButton:
name: 'addresses_dialog'
text: _('Addresses')

2
electrum/gui/kivy/main_window.py

@ -655,7 +655,7 @@ class ElectrumWindow(App, Logger):
util.register_callback(self.set_num_peers, ['gossip_peers'])
util.register_callback(self.set_unknown_channels, ['unknown_channels'])
if self.electrum_config.get('auto_connect') is None:
if self.network and self.electrum_config.get('auto_connect') is None:
self.popup_dialog("first_screen")
# load_wallet_on_start will be called later, after initial network setup is completed
else:

Loading…
Cancel
Save