From 95f7b0d8df0d426ade8ad7c31419790eb109bc95 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Wed, 20 Dec 2017 07:39:55 +1100 Subject: [PATCH] Clear the status bar messages earlier when starting a new share --- onionshare_gui/onionshare_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index 3ed30db7..4eb5bc9e 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -238,6 +238,7 @@ class OnionShareGui(QtWidgets.QMainWindow): # Hide and reset the downloads if we have previously shared self.downloads_container.hide() self.downloads.reset_downloads() + self.status_bar.clearMessage() # Reset web counters web.download_count = 0 @@ -278,7 +279,6 @@ class OnionShareGui(QtWidgets.QMainWindow): self._zip_progress_bar = ZipProgressBar(0) self._zip_progress_bar.total_files_size = OnionShareGui._compute_total_size( self.file_selection.file_list.filenames) - self.status_bar.clearMessage() self.status_bar.insertWidget(0, self._zip_progress_bar) # prepare the files for sending in a new thread