From 9265235053aad4261bf8c2da4809acc3d3fb69f1 Mon Sep 17 00:00:00 2001 From: navjot Date: Sat, 31 Oct 2020 13:41:30 +0530 Subject: [PATCH] fixed network issue when it is set offline --- src/bitmessageqt/__init__.py | 1 + src/bitmessageqt/settings.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index f8c73ad7..34fee6d3 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -1640,6 +1640,7 @@ class MyForm(settingsmixin.SMainWindow): dialog = dialogs.ConnectDialog(self) if dialog.exec_(): if dialog.radioButtonConnectNow.isChecked(): + self.ui.updateNetworkSwitchMenuLabel(False) BMConfigParser().remove_option( 'bitmessagesettings', 'dontconnect') BMConfigParser().save() diff --git a/src/bitmessageqt/settings.py b/src/bitmessageqt/settings.py index 32502d61..f1c1a11f 100644 --- a/src/bitmessageqt/settings.py +++ b/src/bitmessageqt/settings.py @@ -49,6 +49,8 @@ class SettingsDialog(QtGui.QDialog): self.net_restart_needed = False self.timer = QtCore.QTimer() + if self.config.safeGetBoolean('bitmessagesettings', 'dontconnect'): + self.firstrun = False try: import pkg_resources except ImportError: