Improve the position of Open Workspace in the File menu

Keep the "Recent *" menus together

Change-Id: I99613201bf7ee00e91ca63b56ddcccf23f13c5c7
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Eike Ziller
2024-06-12 14:27:45 +02:00
parent 25290aaf05
commit d074f1a9b4
3 changed files with 5 additions and 3 deletions

View File

@@ -1629,6 +1629,7 @@ void ICorePrivate::registerDefaultContainers()
filemenu->menu()->setTitle(Tr::tr("&File"));
filemenu->appendGroup(Constants::G_FILE_NEW);
filemenu->appendGroup(Constants::G_FILE_OPEN);
filemenu->appendGroup(Constants::G_FILE_RECENT);
filemenu->appendGroup(Constants::G_FILE_SESSION);
filemenu->appendGroup(Constants::G_FILE_PROJECT);
filemenu->appendGroup(Constants::G_FILE_SAVE);
@@ -1785,7 +1786,7 @@ void ICorePrivate::registerDefaultActions()
// File->Recent Files Menu
ActionContainer *ac = ActionManager::createMenu(Constants::M_FILE_RECENTFILES);
mfile->addMenu(ac, Constants::G_FILE_OPEN);
mfile->addMenu(ac, Constants::G_FILE_RECENT);
ac->menu()->setTitle(Tr::tr("Recent &Files"));
ac->setOnAllDisabledBehavior(ActionContainer::Show);