work save

This commit is contained in:
royqh1979 2021-09-17 20:01:11 +08:00
parent 78ea33d152
commit fc4beb9fda
1 changed files with 4 additions and 0 deletions

View File

@ -259,6 +259,10 @@ void MainWindow::updateEditorActions()
void MainWindow::updateProjectActions() void MainWindow::updateProjectActions()
{ {
bool hasProject = (mProject != nullptr); bool hasProject = (mProject != nullptr);
ui->actionView_Makefile->setEnabled(hasProject);
ui->actionProject_New_File->setEnabled(hasProject);
ui->actionAdd_to_project->setEnabled(hasProject);
ui->actionRemove_from_project->setEnabled(hasProject && ui->projectView->selectionModel()->hasSelection());
ui->actionProject_options->setEnabled(hasProject); ui->actionProject_options->setEnabled(hasProject);
ui->actionClose_Project->setEnabled(hasProject); ui->actionClose_Project->setEnabled(hasProject);
updateCompileActions(); updateCompileActions();