Update icon db path when private-browsing changed.
This commit is contained in:
parent
706cc1a87f
commit
c83775cf29
@ -394,9 +394,15 @@ def init():
|
|||||||
|
|
||||||
def update_settings(section, option):
|
def update_settings(section, option):
|
||||||
"""Update global settings when qwebsettings changed."""
|
"""Update global settings when qwebsettings changed."""
|
||||||
try:
|
if (section, option) == ('general', 'private-browsing'):
|
||||||
mapping = MAPPINGS[section][option]
|
if config.get('general', 'private-browsing'):
|
||||||
except KeyError:
|
QWebSettings.setIconDatabasePath('')
|
||||||
return
|
else:
|
||||||
value = config.get(section, option)
|
QWebSettings.setIconDatabasePath(standarddir.cache())
|
||||||
mapping.set(value)
|
else:
|
||||||
|
try:
|
||||||
|
mapping = MAPPINGS[section][option]
|
||||||
|
except KeyError:
|
||||||
|
return
|
||||||
|
value = config.get(section, option)
|
||||||
|
mapping.set(value)
|
||||||
|
Loading…
Reference in New Issue
Block a user