fix(ukcc-plugin):the ocr switch has not been closed while changing the state of the file content switch to false.

This commit is contained in:
JunjieBai 2024-01-22 14:16:40 +08:00
parent e06970515b
commit f9fd6104d1
1 changed files with 3 additions and 0 deletions

View File

@ -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);