forked from qt-creator/qt-creator
Merge remote-tracking branch 'origin/7.0'
Conflicts: src/plugins/qmlprojectmanager/qmlprojectplugin.cpp Change-Id: I14030f58303839e706af892dd12a67566e3bed68
This commit is contained in:
@@ -436,6 +436,13 @@ static bool hideAnalyzeMenu()
|
||||
.toBool();
|
||||
}
|
||||
|
||||
static bool hideDebugMenu()
|
||||
{
|
||||
return Core::ICore::settings()
|
||||
->value(ProjectExplorer::Constants::SETTINGS_MENU_HIDE_DEBUG, false)
|
||||
.toBool();
|
||||
}
|
||||
|
||||
QAction *addAction(const QObject *parent, QMenu *menu, const QString &display, bool on,
|
||||
const std::function<void()> &onTriggered)
|
||||
{
|
||||
@@ -922,7 +929,9 @@ DebuggerPluginPrivate::DebuggerPluginPrivate(const QStringList &arguments)
|
||||
m_visibleStartAction.setAction(&m_startAction);
|
||||
|
||||
m_visibleStartAction.setObjectName("Debug"); // used for UI introduction
|
||||
ModeManager::addAction(&m_visibleStartAction, /*priority*/ 90);
|
||||
|
||||
if (!hideDebugMenu())
|
||||
ModeManager::addAction(&m_visibleStartAction, /*priority*/ 90);
|
||||
|
||||
m_undisturbableAction.setIcon(interruptIcon(false));
|
||||
m_undisturbableAction.setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user