From bc2b7179079b198a3305a66b87082ae5b4a8f574 Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Tue, 13 Feb 2018 17:50:10 -0800 Subject: [PATCH] Fix bug where persistent tooltips were not displaying --- onionshare_gui/server_status.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/onionshare_gui/server_status.py b/onionshare_gui/server_status.py index 654c4c28..1bd18e2f 100644 --- a/onionshare_gui/server_status.py +++ b/onionshare_gui/server_status.py @@ -137,10 +137,11 @@ class ServerStatus(QtWidgets.QWidget): self.url_label.setToolTip(strings._('gui_url_label_onetime_and_persistent', True)) else: self.url_label.setToolTip(strings._('gui_url_label_persistent', True)) - if self.settings.get('close_after_first_download'): - self.url_label.setToolTip(strings._('gui_url_label_onetime', True)) else: - self.url_label.setToolTip(strings._('gui_url_label_stay_open', True)) + if self.settings.get('close_after_first_download'): + self.url_label.setToolTip(strings._('gui_url_label_onetime', True)) + else: + self.url_label.setToolTip(strings._('gui_url_label_stay_open', True)) self.url_label.show() self.url.setText('http://{0:s}/{1:s}'.format(self.app.onion_host, self.web.slug))