You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.':
1799
-
self.statusbar.clearMessage()
1800
-
self.pushButtonStatusIcon.setIcon(
1801
-
QtGui.QIcon(":/newPrefix/images/yellowicon.png"))
1802
-
state.statusIconColor='yellow'
1803
-
# if a new connection has been established then show a notification
1804
-
ifnotself.connectedand_notifications_enabled:
1805
-
self.notifierShow(
1806
-
'Bitmessage',
1807
-
_translate("MainWindow", "Connected"),
1808
-
sound.SOUND_CONNECTED)
1809
-
self.connected=True
1810
-
1811
-
ifself.actionStatusisnotNone:
1812
-
self.actionStatus.setText(_translate(
1813
-
"MainWindow", "Connected"))
1814
-
self.setTrayIconFile("can-icon-24px-yellow.png")
1815
-
ifcolor=='green':
1816
-
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.':
1817
-
self.statusbar.clearMessage()
1818
-
self.pushButtonStatusIcon.setIcon(
1819
-
QtGui.QIcon(":/newPrefix/images/greenicon.png"))
1820
-
state.statusIconColor='green'
1821
-
ifnotself.connectedand_notifications_enabled:
1822
-
self.notifierShow(
1823
-
'Bitmessage',
1824
-
_translate("MainWindow", "Connected"),
1825
-
sound.SOUND_CONNECTION_GREEN)
1826
-
self.connected=True
1800
+
return
1827
1801
1828
-
ifself.actionStatusisnotNone:
1829
-
self.actionStatus.setText(_translate(
1830
-
"MainWindow", "Connected"))
1831
-
self.setTrayIconFile("can-icon-24px-green.png")
1802
+
ifself.statusbar.currentMessage() == (
1803
+
"Warning: You are currently not connected. Bitmessage will do"
1804
+
" the work necessary to send the message but it won't send"
1805
+
" until you connect."
1806
+
):
1807
+
self.statusbar.clearMessage()
1808
+
# if a new connection has been established then show a notification
0 commit comments