fixed network issue when it is set offline
This commit is contained in:
parent
124e6d9b32
commit
9265235053
|
@ -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…
Reference in New Issue
Block a user