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)
|
dialog = dialogs.ConnectDialog(self)
|
||||||
if dialog.exec_():
|
if dialog.exec_():
|
||||||
if dialog.radioButtonConnectNow.isChecked():
|
if dialog.radioButtonConnectNow.isChecked():
|
||||||
|
self.ui.updateNetworkSwitchMenuLabel(False)
|
||||||
BMConfigParser().remove_option(
|
BMConfigParser().remove_option(
|
||||||
'bitmessagesettings', 'dontconnect')
|
'bitmessagesettings', 'dontconnect')
|
||||||
BMConfigParser().save()
|
BMConfigParser().save()
|
||||||
|
|
|
@ -49,6 +49,8 @@ class SettingsDialog(QtGui.QDialog):
|
||||||
self.net_restart_needed = False
|
self.net_restart_needed = False
|
||||||
self.timer = QtCore.QTimer()
|
self.timer = QtCore.QTimer()
|
||||||
|
|
||||||
|
if self.config.safeGetBoolean('bitmessagesettings', 'dontconnect'):
|
||||||
|
self.firstrun = False
|
||||||
try:
|
try:
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
except ImportError:
|
except ImportError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user