1101 "AdBlockExceptions": [], |
1101 "AdBlockExceptions": [], |
1102 "AdBlockUseLimitedEasyList": True, |
1102 "AdBlockUseLimitedEasyList": True, |
1103 # Flash Cookie Manager: identical to helpDefaults |
1103 # Flash Cookie Manager: identical to helpDefaults |
1104 # PIM: identical to helpDefaults |
1104 # PIM: identical to helpDefaults |
1105 # VirusTotal: identical to helpDefaults |
1105 # VirusTotal: identical to helpDefaults |
|
1106 # Sessions |
|
1107 "SessionAutoSave": True, |
|
1108 "SessionAutoSaveInterval": 15, # interval in seconds |
1106 } |
1109 } |
1107 if QWebEngineSettings: |
1110 if QWebEngineSettings: |
1108 webBrowserDefaults["HelpViewerType"] = 1 # eric browser |
1111 webBrowserDefaults["HelpViewerType"] = 1 # eric browser |
1109 else: |
1112 else: |
1110 webBrowserDefaults["HelpViewerType"] = 2 # Qt Assistant |
1113 webBrowserDefaults["HelpViewerType"] = 2 # Qt Assistant |
2868 "SearchLanguage", "WebInspectorPort", |
2871 "SearchLanguage", "WebInspectorPort", |
2869 "DefaultFontSize", "DefaultFixedFontSize", |
2872 "DefaultFontSize", "DefaultFixedFontSize", |
2870 "MinimumFontSize", "MinimumLogicalFontSize", |
2873 "MinimumFontSize", "MinimumLogicalFontSize", |
2871 "DiskCacheSize", "AcceptCookies", "KeepCookiesUntil", |
2874 "DiskCacheSize", "AcceptCookies", "KeepCookiesUntil", |
2872 "AdBlockUpdatePeriod", "TabManagerGroupByType", |
2875 "AdBlockUpdatePeriod", "TabManagerGroupByType", |
|
2876 "SessionAutoSaveInterval", |
2873 ]: |
2877 ]: |
2874 return int(prefClass.settings.value( |
2878 return int(prefClass.settings.value( |
2875 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) |
2879 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) |
2876 elif key in ["SingleWebBrowserWindow", "SaveGeometry", |
2880 elif key in ["SingleWebBrowserWindow", "SaveGeometry", |
2877 "JavaScriptCanOpenWindows", "JavaScriptCanAccessClipboard", |
2881 "JavaScriptCanOpenWindows", "JavaScriptCanAccessClipboard", |
2891 "AutoScrollEnabled", "ScreenCaptureEnabled", |
2895 "AutoScrollEnabled", "ScreenCaptureEnabled", |
2892 "WebGLEnabled", "FocusOnNavigationEnabled", |
2896 "WebGLEnabled", "FocusOnNavigationEnabled", |
2893 "PrintElementBackgrounds", "AllowRunningInsecureContent", |
2897 "PrintElementBackgrounds", "AllowRunningInsecureContent", |
2894 "SpellCheckEnabled", "ShowToolbars", "MenuBarVisible", |
2898 "SpellCheckEnabled", "ShowToolbars", "MenuBarVisible", |
2895 "BookmarksToolBarVisible", "StatusBarVisible", |
2899 "BookmarksToolBarVisible", "StatusBarVisible", |
|
2900 "SessionAutoSave", |
2896 ]: |
2901 ]: |
2897 return toBool(prefClass.settings.value( |
2902 return toBool(prefClass.settings.value( |
2898 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) |
2903 "WebBrowser/" + key, prefClass.webBrowserDefaults[key])) |
2899 elif key in ["GreaseMonkeyDisabledScripts", "SendRefererWhitelist", |
2904 elif key in ["GreaseMonkeyDisabledScripts", "SendRefererWhitelist", |
2900 "AdBlockSubscriptions", "AdBlockExceptions", |
2905 "AdBlockSubscriptions", "AdBlockExceptions", |