From 968a136f424331b689e7f9925f8de0e7bacb9a59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Feber?= Date: Tue, 29 Oct 2019 19:12:31 +0100 Subject: [PATCH] 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 --- containmentactions/contextmenu/menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containmentactions/contextmenu/menu.cpp b/containmentactions/contextmenu/menu.cpp index 40a9db4f0..ad33bb3e2 100644 --- a/containmentactions/contextmenu/menu.cpp +++ b/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")