From f9fd6104d1bbfccdf62b63746346a091f0410ab4 Mon Sep 17 00:00:00 2001 From: JunjieBai Date: Mon, 22 Jan 2024 14:16:40 +0800 Subject: [PATCH] fix(ukcc-plugin):the ocr switch has not been closed while changing the state of the file content switch to false. --- search-ukcc-plugin/search.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/search-ukcc-plugin/search.cpp b/search-ukcc-plugin/search.cpp index 1242084..e8c324a 100644 --- a/search-ukcc-plugin/search.cpp +++ b/search-ukcc-plugin/search.cpp @@ -146,6 +146,9 @@ QWidget *Search::pluginUi() m_indexSetFrame->show(); } else { m_indexSetFrame->hide(); + if (m_gsettings->keys().contains(CONTENT_INDEX_ENABLE_OCR_KEY)) { + m_gsettings->set(CONTENT_INDEX_ENABLE_OCR_KEY, false); + } } } else if (key == CONTENT_INDEX_ENABLE_OCR_KEY) { m_ocrSwitchBtn->blockSignals(true);