summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel Jacq <mig@mig5.net>2019-09-03 12:35:30 +1000
committerMiguel Jacq <mig@mig5.net>2019-09-03 12:35:30 +1000
commit273b893946cf89ec29766b7fb62c49846d8b7b76 (patch)
tree201b127ab20e4d3040498d69be92a8cf68c9bc02
parent9ae98eb7cb64b83dcaaf2c063bda327cb068b0ce (diff)
downloadonionshare-273b893946cf89ec29766b7fb62c49846d8b7b76.tar.gz
onionshare-273b893946cf89ec29766b7fb62c49846d8b7b76.zip
Don't show the IndividualFile History item if we are not in 'stay open' mode, or else 404 requests create History noise
-rw-r--r--onionshare_gui/mode/share_mode/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/onionshare_gui/mode/share_mode/__init__.py b/onionshare_gui/mode/share_mode/__init__.py
index dd4ec1ab..a9752174 100644
--- a/onionshare_gui/mode/share_mode/__init__.py
+++ b/onionshare_gui/mode/share_mode/__init__.py
@@ -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"])