Don't complain about being disconnected if in offline mode

This commit is contained in:
Peter Šurda 2018-01-30 17:42:10 +01:00
parent ced3f78fb4
commit 9807d3e4b4
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -2663,7 +2663,8 @@ class MyForm(settingsmixin.SMainWindow):
else: else:
PendingDownloadQueue.stop() PendingDownloadQueue.stop()
if shared.statusIconColor == 'red': if shared.statusIconColor == 'red' and not BMConfigParser().safeGetBoolean(
'bitmessagesettings', 'dontconnect'):
reply = QtGui.QMessageBox.question(self, _translate("MainWindow", "Not connected"), reply = QtGui.QMessageBox.question(self, _translate("MainWindow", "Not connected"),
_translate("MainWindow", "Bitmessage isn't connected to the network. If you quit now, it may cause delivery delays. Wait until connected and the synchronisation finishes?"), _translate("MainWindow", "Bitmessage isn't connected to the network. If you quit now, it may cause delivery delays. Wait until connected and the synchronisation finishes?"),
QtGui.QMessageBox.Yes|QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel) QtGui.QMessageBox.Yes|QtGui.QMessageBox.No|QtGui.QMessageBox.Cancel, QtGui.QMessageBox.Cancel)