- most status messages are transient, so they are now only displayed for
10 seconds
- when trying to quit while disconnected or not fully synced, a
three-choice message box now appears: Yes for waiting, No for
closing anyway, and Cancel for aborting the shutdown procedure
@ -1698,7 +1698,7 @@ class MyForm(settingsmixin.SMainWindow):
self.setTrayIconFile("can-icon-24px-red.png")
ifcolor=='yellow':
ifself.statusBar().currentMessage()=='Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won\'t send until you connect.':
self.statusBar().showMessage('')
self.statusBar().clearMessage()
self.pushButtonStatusIcon.setIcon(QIcon(
":/newPrefix/images/yellowicon.png"))
shared.statusIconColor='yellow'
@ -1715,7 +1715,7 @@ class MyForm(settingsmixin.SMainWindow):
self.setTrayIconFile("can-icon-24px-yellow.png")
ifcolor=='green':
ifself.statusBar().currentMessage()=='Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won\'t send until you connect.':
self.statusBar().showMessage('')
self.statusBar().clearMessage()
self.pushButtonStatusIcon.setIcon(
QIcon(":/newPrefix/images/greenicon.png"))
shared.statusIconColor='green'
@ -1844,7 +1844,7 @@ class MyForm(settingsmixin.SMainWindow):
self.statusBar().showMessage(_translate("MainWindow","New version of PyBitmessage is available: %1. Download it from https://github.com/Bitmessage/PyBitmessage/releases/latest").arg(self.notifiedNewVersion))
self.statusBar().showMessage(_translate("MainWindow","New version of PyBitmessage is available: %1. Download it from https://github.com/Bitmessage/PyBitmessage/releases/latest").arg(self.notifiedNewVersion), 10000)
"MainWindow","Error: Your account wasn't registered at an email gateway. Sending registration now as %1, please wait for the registration to be processed before retrying sending.").arg(email))
"MainWindow","Error: Your account wasn't registered at an email gateway. Sending registration now as %1, please wait for the registration to be processed before retrying sending.").arg(email), 10000)
"MainWindow","Error: The address version in %1 is too high. Either you need to upgrade your Bitmessage software or your acquaintance is being clever.").arg(toAddress))
"MainWindow","Error: The address version in %1 is too high. Either you need to upgrade your Bitmessage software or your acquaintance is being clever.").arg(toAddress), 10000)
elifstatus=='ripetooshort':
self.statusBar().showMessage(_translate(
"MainWindow","Error: Some data encoded in the address %1 is too short. There might be something wrong with the software of your acquaintance.").arg(toAddress))
"MainWindow","Error: Some data encoded in the address %1 is too short. There might be something wrong with the software of your acquaintance.").arg(toAddress), 10000)
elifstatus=='ripetoolong':
self.statusBar().showMessage(_translate(
"MainWindow","Error: Some data encoded in the address %1 is too long. There might be something wrong with the software of your acquaintance.").arg(toAddress))
"MainWindow","Error: Some data encoded in the address %1 is too long. There might be something wrong with the software of your acquaintance.").arg(toAddress), 10000)
elifstatus=='varintmalformed':
self.statusBar().showMessage(_translate(
"MainWindow","Error: Some data encoded in the address %1 is malformed. There might be something wrong with the software of your acquaintance.").arg(toAddress))
"MainWindow","Error: Some data encoded in the address %1 is malformed. There might be something wrong with the software of your acquaintance.").arg(toAddress), 10000)
else:
self.statusBar().showMessage(_translate(
"MainWindow","Error: Something is wrong with the address %1.").arg(toAddress))
"MainWindow","Error: Something is wrong with the address %1.").arg(toAddress), 10000)
eliffromAddress=='':
self.statusBar().showMessage(_translate(
"MainWindow","Error: You must specify a From address. If you don\'t have one, go to the \'Your Identities\' tab."))
"MainWindow","Error: You must specify a From address. If you don\'t have one, go to the \'Your Identities\' tab."), 10000)
else:
toAddress=addBMIfNotPresent(toAddress)
@ -2041,7 +2041,7 @@ class MyForm(settingsmixin.SMainWindow):
"MainWindow","Concerning the address %1, Bitmessage cannot handle stream numbers of %2. Perhaps upgrade Bitmessage to the latest version.").arg(toAddress).arg(str(streamNumber)))
continue
self.statusBar().showMessage('')
self.statusBar().clearMessage()
ifshared.statusIconColor=='red':
self.statusBar().showMessage(_translate(
"MainWindow","Warning: You are currently not connected. Bitmessage will do the work necessary to send the message but it won\'t send until you connect."))
@ -2085,17 +2085,17 @@ class MyForm(settingsmixin.SMainWindow):
# We must check to see if the address is already in the subscriptions list. The user cannot add it again or else it will cause problems when updating and deleting the entry.
ifshared.isAddressInMySubscriptionsList(address):
self.statusBar().showMessage(_translate("MainWindow","Error: You cannot add the same address to your subscriptions twice. Perhaps rename the existing one if you want."))
self.statusBar().showMessage(_translate("MainWindow","Error: You cannot add the same address to your subscriptions twice. Perhaps rename the existing one if you want."), 10000)
"MainWindow","Bitmessage will use your proxy from now on but you may want to manually restart Bitmessage now to close existing connections (if any)."))
_translate("MainWindow","Bitmessage hasn't synchronised with the network, %n object(s) to be downloaded. If you quit now, it may cause delivery delays. Wait until the synchronisation finishes?",None,QtCore.QCoreApplication.CodecForTr,toBeDownloaded),
_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?",None,QtCore.QCoreApplication.CodecForTr,toBeDownloaded),
# this probably will not work correctly, because there is a delay between the status icon turning red and inventory exchange, but it's better than nothing.
ifwaitForSync:
self.statusBar().showMessage(_translate(
"MainWindow","Waiting for finishing synchronisation..."))
self.statusBar().showMessage(QtGui.QApplication.translate("MainWindow","Error: You cannot add the same address to your subscriptions twice. Perhaps rename the existing one if you want."))
self.statusBar().showMessage(QtGui.QApplication.translate("MainWindow","Error: You cannot add the same address to your subscriptions twice. Perhaps rename the existing one if you want."), 10000)