解决未打开索引时搜索不能弹出提示窗的问题

This commit is contained in:
iaom 2022-12-06 09:25:40 +08:00
parent 15c4331da8
commit 8074df1dc4
1 changed files with 1 additions and 1 deletions

View File

@ -404,7 +404,7 @@ void MainWindow::initTimer() {
m_askTimer->stop();
} else {
//允许弹窗且当前次搜索(为关闭主界面,算一次搜索过程)未询问且当前为暴力搜索
if(m_settings->value(ENABLE_CREATE_INDEX_ASK_DIALOG).toBool() && !m_currentSearchAsked && GlobalSettings::getInstance()->getValue(FILE_INDEX_ENABLE_KEY).toBool() == false)
if(m_settings->value(ENABLE_CREATE_INDEX_ASK_DIALOG, true).toBool() && !m_currentSearchAsked && GlobalSettings::getInstance()->getValue(FILE_INDEX_ENABLE_KEY).toBool() == false)
m_askTimer->start();
}
});