mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-26 08:05:49 -04:00
Only show other_page_loaded message on actual 404s
This commit is contained in:
parent
7a571764ef
commit
8939d279e3
1 changed files with 3 additions and 2 deletions
|
@ -402,7 +402,8 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
||||||
if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_NOT_WRITABLE:
|
if event["type"] == Web.REQUEST_ERROR_DOWNLOADS_DIR_NOT_WRITABLE:
|
||||||
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')))
|
||||||
|
|
||||||
elif event["path"] != '/favicon.ico':
|
if event["type"] == Web.REQUEST_OTHER:
|
||||||
|
if event["path"] != '/favicon.ico':
|
||||||
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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue