ProjectExplorer: Clean up context menu

Having three different "Close ..." options close together makes it
annoying to find the one you want, which is Close Project xyz ;)

Change-Id: Ie78b508f2c3378dcdd2e6f6de5d8699067bc9fb3
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-09-03 13:35:54 +02:00
parent a77b59a379
commit cff5d55651

View File

@@ -1530,7 +1530,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
"ProjectExplorer.CloseAllFilesInProjectContextMenu"); "ProjectExplorer.CloseAllFilesInProjectContextMenu");
cmd->setAttribute(Command::CA_UpdateText); cmd->setAttribute(Command::CA_UpdateText);
cmd->setDescription(dd->m_closeProjectFilesActionContextMenu->text()); cmd->setDescription(dd->m_closeProjectFilesActionContextMenu->text());
mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_CLOSE); mprojectContextMenu->addAction(cmd, Constants::G_PROJECT_FILES);
// unload project again, in right position // unload project again, in right position
dd->m_unloadActionContextMenu = new Action(Tr::tr("Close Project"), Tr::tr("Close Project \"%1\""), dd->m_unloadActionContextMenu = new Action(Tr::tr("Close Project"), Tr::tr("Close Project \"%1\""),