fixed network issue when it is set offline

sgj3/issue1538
navjot 3 years ago
parent 124e6d9b32
commit 9265235053
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

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

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

Loading…
Cancel
Save