diff options
author | Micah Lee <micah@micahflee.com> | 2018-02-13 17:21:40 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2018-02-13 17:21:40 -0800 |
commit | 6903e9bad62e2d545421d75cb194ff02b3e09df9 (patch) | |
tree | bbc90ea98690ddb42e4bd1bac530945336383f0d /onionshare_gui | |
parent | df40b49521628933821796f5efa9c359ca78f731 (diff) | |
parent | b8cf692cd8d9555a6a0c9a25d867555f7fea02fa (diff) | |
download | onionshare-6903e9bad62e2d545421d75cb194ff02b3e09df9.tar.gz onionshare-6903e9bad62e2d545421d75cb194ff02b3e09df9.zip |
Merge branch 'copy_urls_moved_to_desktop_notifications' of https://github.com/mig5/onionshare into mig5-copy_urls_moved_to_desktop_notifications
Diffstat (limited to 'onionshare_gui')
-rw-r--r-- | onionshare_gui/onionshare_gui.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/onionshare_gui/onionshare_gui.py b/onionshare_gui/onionshare_gui.py index f52281de..7724e69f 100644 --- a/onionshare_gui/onionshare_gui.py +++ b/onionshare_gui/onionshare_gui.py @@ -383,7 +383,6 @@ class OnionShareGui(QtWidgets.QMainWindow): self.starting_server_error.emit(e.strerror) return - #self.status_bar.showMessage(strings._('gui_starting_server2', True)) t = threading.Thread(target=finish_starting_server, kwargs={'self': self}) t.daemon = True t.start() @@ -569,14 +568,16 @@ class OnionShareGui(QtWidgets.QMainWindow): When the URL gets copied to the clipboard, display this in the status bar. """ common.log('OnionShareGui', 'copy_url') - self.status_bar.showMessage(strings._('gui_copied_url', True), 2000) + if self.systemTray.supportsMessages() and self.settings.get('systray_notifications'): + self.systemTray.showMessage(strings._('gui_copied_url_title', True), strings._('gui_copied_url', True)) def copy_hidservauth(self): """ When the stealth onion service HidServAuth gets copied to the clipboard, display this in the status bar. """ common.log('OnionShareGui', 'copy_hidservauth') - self.status_bar.showMessage(strings._('gui_copied_hidservauth', True), 2000) + if self.systemTray.supportsMessages() and self.settings.get('systray_notifications'): + self.systemTray.showMessage(strings._('gui_copied_hidservauth_title', True), strings._('gui_copied_hidservauth', True)) def clear_message(self): """ |