diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 93aad18e..642f69cb 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1694,6 +1694,7 @@ void MainWindow::showCPUInfoDialog() if (mCPUDialog==nullptr) { mCPUDialog = new CPUDialog(this); connect(mCPUDialog, &CPUDialog::closed, this, &MainWindow::cleanUpCPUDialog); + updateCompileActions(); } mCPUDialog->show(); } diff --git a/RedPandaIDE/widgets/cpudialog.cpp b/RedPandaIDE/widgets/cpudialog.cpp index d9e8aa4e..794ee894 100644 --- a/RedPandaIDE/widgets/cpudialog.cpp +++ b/RedPandaIDE/widgets/cpudialog.cpp @@ -53,7 +53,6 @@ CPUDialog::CPUDialog(QWidget *parent) : updateIcons(); connect(pIconsManager,&IconsManager::actionIconsUpdated, this, &CPUDialog::updateIcons); - updateButtonStates(false); } CPUDialog::~CPUDialog()