fix: correctly set states for buttons in cpu dialog

This commit is contained in:
Roy Qu 2021-12-23 09:17:27 +08:00
parent 6c413fe8f9
commit a50c6af5de
2 changed files with 1 additions and 1 deletions

View File

@ -1694,6 +1694,7 @@ void MainWindow::showCPUInfoDialog()
if (mCPUDialog==nullptr) {
mCPUDialog = new CPUDialog(this);
connect(mCPUDialog, &CPUDialog::closed, this, &MainWindow::cleanUpCPUDialog);
updateCompileActions();
}
mCPUDialog->show();
}

View File

@ -53,7 +53,6 @@ CPUDialog::CPUDialog(QWidget *parent) :
updateIcons();
connect(pIconsManager,&IconsManager::actionIconsUpdated,
this, &CPUDialog::updateIcons);
updateButtonStates(false);
}
CPUDialog::~CPUDialog()