diff options
author | Miguel Jacq <mig@mig5.net> | 2019-03-08 11:03:37 +1100 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2019-03-08 11:03:37 +1100 |
commit | dc0fe4f7b13f980857bde7d79fadc82b7fd7567c (patch) | |
tree | f75beda65deae6023ceb77a4fda6da4c84be9312 /onionshare_gui | |
parent | 00a8b88264776f232495849c7366240e372f57cd (diff) | |
download | onionshare-dc0fe4f7b13f980857bde7d79fadc82b7fd7567c.tar.gz onionshare-dc0fe4f7b13f980857bde7d79fadc82b7fd7567c.zip |
Fix a minor corner case related to server status button when canceling a scheduled share. Leverage scheduled shares in order to test 'cancel' action in local mode for better test coverage
Diffstat (limited to 'onionshare_gui')
-rw-r--r-- | onionshare_gui/threads.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/onionshare_gui/threads.py b/onionshare_gui/threads.py index fff56bc2..dda8094e 100644 --- a/onionshare_gui/threads.py +++ b/onionshare_gui/threads.py @@ -115,9 +115,9 @@ class StartupTimer(QtCore.QThread): now = QtCore.QDateTime.currentDateTime() scheduled_start = now.secsTo(self.mode.server_status.scheduled_start) # Timer has now finished - self.mode.server_status.server_button.setText(strings._('gui_please_wait')) - self.mode.server_status_label.setText(strings._('gui_status_indicator_share_working')) if self.canceled == False: + self.mode.server_status.server_button.setText(strings._('gui_please_wait')) + self.mode.server_status_label.setText(strings._('gui_status_indicator_share_working')) self.success.emit() except ValueError as e: self.error.emit(e.args[0]) |