Don't show "Customize Layout..." menu item in panel context menu

Summary: "Edit Panel..." already enters the edit mode, so there's no need to clutter the context menu with another "Customize Layout..." menu item.

Test Plan: Open the panel context menu.

Reviewers: #plasma, #vdg, mart, ngraham

Reviewed By: #plasma, #vdg, mart, ngraham

Subscribers: mart, #vdg, plasma-devel, #plasma

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D25053
wilder-5.18
Björn Feber 6 years ago
parent f45a7ef7cb
commit 968a136f42
  1. 2
      containmentactions/contextmenu/menu.cpp

@ -71,7 +71,7 @@ void ContextMenu::restore(const KConfigGroup &config)
if (c->containmentType() == Plasma::Types::PanelContainment ||
c->containmentType() == Plasma::Types::CustomPanelContainment) {
m_actionOrder << QStringLiteral("add widgets") << QStringLiteral("_add panel") << QStringLiteral("lock widgets") << QStringLiteral("edit mode") << QStringLiteral("_context") << QStringLiteral("configure") << QStringLiteral("remove");
m_actionOrder << QStringLiteral("add widgets") << QStringLiteral("_add panel") << QStringLiteral("lock widgets") << QStringLiteral("_context") << QStringLiteral("configure") << QStringLiteral("remove");
} else {
actions.insert(QStringLiteral("configure shortcuts"), false);
m_actionOrder << QStringLiteral("_context") << QStringLiteral("_run_command") << QStringLiteral("add widgets") << QStringLiteral("_add panel")

Loading…
Cancel
Save