From a037a0b656201fdf9a467c243fd2b6c6a3f9d8b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sami=20V=C3=A4nttinen?= Date: Mon, 18 Apr 2022 22:12:02 +0300 Subject: [PATCH] Hide Automatic Reconnect option (#1609) Hide Automatic Reconnect option --- keepassxc-browser/background/page.js | 5 +---- keepassxc-browser/options/options.html | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/keepassxc-browser/background/page.js b/keepassxc-browser/background/page.js index 09edcd3..3196453 100755 --- a/keepassxc-browser/background/page.js +++ b/keepassxc-browser/background/page.js @@ -51,6 +51,7 @@ page.initSettings = async function() { try { const item = await browser.storage.local.get({ 'settings': {} }); page.settings = item.settings; + page.settings.autoReconnect = false; if (!('autoCompleteUsernames' in page.settings)) { page.settings.autoCompleteUsernames = defaultSettings.autoCompleteUsernames; @@ -68,10 +69,6 @@ page.initSettings = async function() { page.settings.autoFillSingleEntry = defaultSettings.autoFillSingleEntry; } - if (!('autoReconnect' in page.settings)) { - page.settings.autoReconnect = defaultSettings.autoReconnect; - } - if (!('autoRetrieveCredentials' in page.settings)) { page.settings.autoRetrieveCredentials = defaultSettings.autoRetrieveCredentials; } diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html index 4328900..9c2a0c3 100644 --- a/keepassxc-browser/options/options.html +++ b/keepassxc-browser/options/options.html @@ -366,7 +366,7 @@ -
+