Merge pull request #749 from mig5/shutdown_slug_systray_message

Don't show the Flask shutdown slug route in the status bar as if it w…
This commit is contained in:
Micah Lee 2018-09-16 12:38:17 -07:00 committed by GitHub
commit 94048c48c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -401,7 +401,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
Alert(self.common, strings._('error_downloads_dir_not_writable').format(self.common.settings.get('downloads_dir')))
if event["type"] == Web.REQUEST_OTHER:
if event["path"] != '/favicon.ico':
if event["path"] != '/favicon.ico' and event["path"] != "{}/shutdown".format(mode.web.shutdown_slug):
self.status_bar.showMessage('[#{0:d}] {1:s}: {2:s}'.format(mode.web.error404_count, strings._('other_page_loaded', True), event["path"]))
mode.timer_callback()