Replace open() with exec() in order to prevent the high cpu occupancy.

This commit is contained in:
JunjieBai 2022-12-08 17:54:45 +08:00 committed by iaom
parent 7614a33c5f
commit 7479d5a703
1 changed files with 5 additions and 2 deletions

View File

@ -756,10 +756,13 @@ void Search::setupConnection()
void Search::onBtnAddBlockFolderClicked()
{
m_blockDirDialog->open();
// m_blockDirDialog->open();
m_blockDirDialog->exec();
}
void Search::onAddSearchDirBtnClicked()
{
m_searchDirDialog->open();
//open()会导致cpu占用拉满
// m_searchDirDialog->open();
m_searchDirDialog->exec();
}