- fix: actions not correctly disabled when compile

This commit is contained in:
Roy Qu 2022-02-03 20:48:11 +08:00
parent 53ad8819db
commit 1574ddd743
2 changed files with 3 additions and 2 deletions

View File

@ -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)

View File

@ -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;
}