From 1574ddd743023731bd223212ac0faf7f8b269fc1 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 3 Feb 2022 20:48:11 +0800 Subject: [PATCH] - fix: actions not correctly disabled when compile --- NEWS.md | 1 + RedPandaIDE/mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index 4b09f44d..15c804d4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,7 @@ Red Panda C++ Version 0.14.1 - enhancement: theme now have default icon set - fix: wrong icons for file associations - fix: editor's font size set by ctrl+mouse wheel will be reset by open the option dialog + - fix: actions not correctly disabled when compile Red Panda C++ Version 0.14.0 - enhancement: custom icon set ( in the configuration folder) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 0ab9ca91..ce36e722 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1409,10 +1409,10 @@ bool MainWindow::compile(bool rebuild) if (mCompileSuccessionTask) { mCompileSuccessionTask->filename = mProject->executable(); } - updateCompileActions(); openCloseBottomPanel(true); ui->tabMessages->setCurrentWidget(ui->tabCompilerOutput); mCompilerManager->compileProject(mProject,rebuild); + updateCompileActions(); updateAppTitle(); } else { Editor * editor = mEditorList->getEditor(); @@ -1425,10 +1425,10 @@ bool MainWindow::compile(bool rebuild) if (mCompileSuccessionTask) { mCompileSuccessionTask->filename = getCompiledExecutableName(editor->filename()); } - updateCompileActions(); openCloseBottomPanel(true); ui->tabMessages->setCurrentWidget(ui->tabCompilerOutput); mCompilerManager->compile(editor->filename(),editor->fileEncoding(),rebuild); + updateCompileActions(); updateAppTitle(); return true; }