From 29abfd8f876e2474a119aa13d957a6a84ebbd3c3 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Mon, 20 May 2019 19:14:04 -0700 Subject: [PATCH] This should be an elif, not an if, because otherwise the share mode stop button says "Stop Receive Mode" --- onionshare_gui/server_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index e8385e64..3b3a7794 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -285,7 +285,7 @@ class ServerStatus(QtWidgets.QWidget): self.server_button.setEnabled(True) if self.mode == ServerStatus.MODE_SHARE: self.server_button.setText(strings._('gui_share_stop_server')) - if self.mode == ServerStatus.MODE_WEBSITE: + elif self.mode == ServerStatus.MODE_WEBSITE: self.server_button.setText(strings._('gui_share_stop_server')) else: self.server_button.setText(strings._('gui_receive_stop_server'))