Preferences/__init__.py

branch
maintenance
changeset 5531
e7fff6f1ff19
parent 5443
3ef014765648
child 5576
c866ec38662d
equal deleted inserted replaced
5529:cf8c8ad72166 5531:e7fff6f1ff19
2833 prefClass.settings.endArray() 2833 prefClass.settings.endArray()
2834 return feeds 2834 return feeds
2835 elif key in ["SyncFtpPassword", "SyncEncryptionKey"]: 2835 elif key in ["SyncFtpPassword", "SyncEncryptionKey"]:
2836 from Utilities.crypto import pwConvert 2836 from Utilities.crypto import pwConvert
2837 return pwConvert(prefClass.settings.value( 2837 return pwConvert(prefClass.settings.value(
2838 "WebBrowser/" + key, prefClass.helpDefaults[key]), encode=False) 2838 "WebBrowser/" + key, prefClass.webBrowserDefaults[key]),
2839 encode=False)
2839 elif key == "HelpViewerType": 2840 elif key == "HelpViewerType":
2840 # special treatment to adjust for missing QtWebEngine 2841 # special treatment to adjust for missing QtWebEngine
2841 value = int(prefClass.settings.value( 2842 value = int(prefClass.settings.value(
2842 "WebBrowser/" + key, prefClass.helpDefaults[key])) 2843 "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
2843 if QWebEngineSettings is None: 2844 if QWebEngineSettings is None:
2844 value = prefClass.helpDefaults[key] 2845 value = prefClass.helpDefaults[key]
2845 return value 2846 return value
2846 elif key in ["StartupBehavior", "HistoryLimit", 2847 elif key in ["StartupBehavior", "HistoryLimit",
2847 "DownloadManagerRemovePolicy", "SyncType", "SyncFtpPort", 2848 "DownloadManagerRemovePolicy", "SyncType", "SyncFtpPort",
2876 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) 2877 "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
2877 elif key in ["GreaseMonkeyDisabledScripts", "SendRefererWhitelist", 2878 elif key in ["GreaseMonkeyDisabledScripts", "SendRefererWhitelist",
2878 "AdBlockSubscriptions", "AdBlockExceptions", 2879 "AdBlockSubscriptions", "AdBlockExceptions",
2879 ]: 2880 ]:
2880 return toList(prefClass.settings.value( 2881 return toList(prefClass.settings.value(
2881 "WebBrowser/" + key, prefClass.helpDefaults[key])) 2882 "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
2882 elif key in ["AutoScrollDivider"]: 2883 elif key in ["AutoScrollDivider"]:
2883 return float(prefClass.settings.value( 2884 return float(prefClass.settings.value(
2884 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) 2885 "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))
2885 else: 2886 else:
2886 return prefClass.settings.value("WebBrowser/" + key, 2887 return prefClass.settings.value("WebBrowser/" + key,

eric ide

mercurial