fixed network issue when it is set offline

This commit is contained in:
navjot 2020-10-31 13:41:30 +05:30
parent 124e6d9b32
commit 9265235053
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C
2 changed files with 3 additions and 0 deletions

View File

@ -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()

View File

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