Stop the icon database from being created when private-browsing is set to true
This commit is contained in:
parent
77df4c7241
commit
8c7a7aaf20
@ -195,7 +195,10 @@ def _set_setting(typ, arg, default=UNSET, value=UNSET):
|
|||||||
def init():
|
def init():
|
||||||
"""Initialize the global QWebSettings."""
|
"""Initialize the global QWebSettings."""
|
||||||
cachedir = standarddir.get(QStandardPaths.CacheLocation)
|
cachedir = standarddir.get(QStandardPaths.CacheLocation)
|
||||||
QWebSettings.setIconDatabasePath(cachedir)
|
if config.get('general', 'private-browsing'):
|
||||||
|
QWebSettings.setIconDatabasePath('')
|
||||||
|
else:
|
||||||
|
QWebSettings.setIconDatabasePath(cachedir)
|
||||||
QWebSettings.setOfflineWebApplicationCachePath(
|
QWebSettings.setOfflineWebApplicationCachePath(
|
||||||
os.path.join(cachedir, 'application-cache'))
|
os.path.join(cachedir, 'application-cache'))
|
||||||
datadir = standarddir.get(QStandardPaths.DataLocation)
|
datadir = standarddir.get(QStandardPaths.DataLocation)
|
||||||
|
Loading…
Reference in New Issue
Block a user