Preferences/__init__.py

branch
safe_browsing
changeset 5808
7bf90dcae4e1
parent 5799
e87f52c0374a
child 5829
d3448873ced3
--- a/Preferences/__init__.py	Sun Jul 16 17:00:01 2017 +0200
+++ b/Preferences/__init__.py	Sun Jul 16 19:34:54 2017 +0200
@@ -1119,6 +1119,9 @@
         "SessionAutoSave": True,
         "SessionAutoSaveInterval": 15,  # interval in seconds
         "SessionLastActivePath": "",
+        # Google Safe Browsing
+        "SafeBrowsingEnabled": True,
+        "SafeBrowsingApiKey": "",       # API key
     }
     if QWebEngineSettings:
         webBrowserDefaults["HelpViewerType"] = 1      # eric browser
@@ -2919,6 +2922,7 @@
                  "SpellCheckEnabled", "ShowToolbars", "MenuBarVisible",
                  "BookmarksToolBarVisible", "StatusBarVisible",
                  "SessionAutoSave", "LoadTabOnActivation",
+                 "SafeBrowsingEnabled",
                  ]:
         return toBool(prefClass.settings.value(
             "WebBrowser/" + key, prefClass.webBrowserDefaults[key]))

eric ide

mercurial