Don't show the Flash shutdown slug route in the status bar as if it were an unexpected 404 route

This commit is contained in:
Miguel Jacq 2018-09-16 15:15:40 +10:00
parent 7a90378f80
commit 7bd897d19e
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

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'))) Alert(self.common, strings._('error_downloads_dir_not_writable').format(self.common.settings.get('downloads_dir')))
if event["type"] == Web.REQUEST_OTHER: 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"])) 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() mode.timer_callback()