1
0

kivy: fix when running with --offline

This commit is contained in:
SomberNight
2021-09-09 17:40:21 +02:00
parent 67f14cdfa8
commit bf6400ae30
2 changed files with 2 additions and 1 deletions

View File

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

View File

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