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:
parent
e06970515b
commit
f9fd6104d1
|
@ -146,6 +146,9 @@ QWidget *Search::pluginUi()
|
||||||
m_indexSetFrame->show();
|
m_indexSetFrame->show();
|
||||||
} else {
|
} else {
|
||||||
m_indexSetFrame->hide();
|
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) {
|
} else if (key == CONTENT_INDEX_ENABLE_OCR_KEY) {
|
||||||
m_ocrSwitchBtn->blockSignals(true);
|
m_ocrSwitchBtn->blockSignals(true);
|
||||||
|
|
Loading…
Reference in New Issue