From 2f5a62c525ba23a64b7f6cb1ce9a677b289a6da6 Mon Sep 17 00:00:00 2001 From: hoothin Date: Tue, 31 Oct 2023 18:51:11 +0800 Subject: [PATCH] Update General.jsx --- src/page/General.jsx | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/page/General.jsx b/src/page/General.jsx index 2bc57ae51..f207b2d61 100644 --- a/src/page/General.jsx +++ b/src/page/General.jsx @@ -163,6 +163,12 @@ export default function General() { } else if (event.target.name === "defaultFindTab") { newPref["defaultPicker"] = !event.target.checked; } + if (event.target.name === "disableTypeOpen" && event.target.checked) { + newPref["disableAutoOpen"] = true; + } + if (event.target.name === "disableAutoOpen" && !event.target.checked) { + newPref["disableTypeOpen"] = false; + } setState(newPref); window.searchData.prefConfig = newPref; saveConfigToScript(); @@ -642,6 +648,8 @@ export default function General() { /> + +

{window.i18n('disableTypeOpen')}

@@ -656,6 +664,19 @@ export default function General() { />
+ + +

{window.i18n('disableAutoOpen')}

+
+ + + } + label={window.i18n('disableAutoOpenTips')} + /> + +
@@ -864,19 +885,6 @@ export default function General() { - - -

{window.i18n('disableAutoOpen')}

-
- - - } - label={window.i18n('disableAutoOpenTips')} - /> - -

{window.i18n('hideOnSearchEngine')}