From 4939715ce83d3ae0ae903499d954a053fe5ebd8a Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 10 Dec 2012 15:16:42 -0500 Subject: [PATCH] Clear status bar if it is currenlty displaying a warning that you are not connected if you connect. --- bitmessagemain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index cb7b87cf..1362be1c 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -2471,8 +2471,6 @@ class MyForm(QtGui.QMainWindow): self.rerenderComboBoxSendFrom() - - self.listOfOutgoingSynSenderThreads = [] #if we don't maintain this list, the threads will get garbage-collected. self.connectToStream(1) @@ -2564,9 +2562,13 @@ class MyForm(QtGui.QMainWindow): self.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/redicon.png")) statusIconColor = 'red' if color == 'yellow': + if self.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.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/yellowicon.png")) statusIconColor = 'yellow' if color == 'green': + if self.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.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/greenicon.png")) statusIconColor = 'green'