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
parent f12b8385a0
commit 8611cf74b6
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();
}