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:
Miguel Jacq 2019-09-03 12:35:30 +10:00
parent 9ae98eb7cb
commit 273b893946
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6

View file

@ -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"])