mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-11 04:02:40 -03:00
Don't show the IndividualFile History item if we are not in 'stay open' mode, or else 404 requests create History noise
This commit is contained in:
parent
9ae98eb7cb
commit
273b893946
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ class ShareMode(Mode):
|
|||
Handle REQUEST_LOAD event.
|
||||
"""
|
||||
self.system_tray.showMessage(strings._('systray_page_loaded_title'), strings._('systray_page_loaded_message'))
|
||||
if not event["path"].startswith(('/favicon.ico', '/download', self.web.static_url_path)) and event["path"] != '/':
|
||||
if not self.common.settings.get('close_after_first_download') and not event["path"].startswith(('/favicon.ico', '/download', self.web.static_url_path)) and event["path"] != '/':
|
||||
|
||||
item = IndividualFileHistoryItem(self.common, event["path"])
|
||||
|
||||
|
|
Loading…
Reference in a new issue