ProjectExplorer: Improve UI for project-related closing actions

- Do not hide, but just disable currently non-applicable actions.
- Properly group the closing-related actions in the project context
menu.
This makes for more stable menu entries and reduces the chance for
accidentally choosing the wrong one.

Task-number: QTCREATORBUG-28211
Change-Id: I26ddc71839d124ec92212971f2facea82cf8d199
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Christian Kandeler
2022-10-27 13:05:18 +02:00
parent 292e8f510e
commit ea917a0aa6
2 changed files with 13 additions and 9 deletions

View File

@@ -60,6 +60,7 @@ const char G_PROJECT_BUILD[] = "Project.Group.Build";
const char G_PROJECT_REBUILD[] = "Project.Group.Rebuild";
const char G_PROJECT_RUN[] = "Project.Group.Run";
const char G_PROJECT_FILES[] = "Project.Group.Files";
const char G_PROJECT_CLOSE[] = "Project.Group.Close";
const char G_PROJECT_TREE[] = "Project.Group.Tree";
const char G_PROJECT_LAST[] = "Project.Group.Last";