forked from qt-creator/qt-creator
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:
@@ -1530,7 +1530,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
|
||||
"ProjectExplorer.CloseAllFilesInProjectContextMenu");
|
||||
cmd->setAttribute(Command::CA_UpdateText);
|
||||
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
|
||||
dd->m_unloadActionContextMenu = new Action(Tr::tr("Close Project"), Tr::tr("Close Project \"%1\""),
|
||||
|
Reference in New Issue
Block a user