From c1fb295cd6f62092e47b23b04ed908fca8a3aefc Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 26 Jan 2023 20:36:38 +0200 Subject: [PATCH] plugins/nightcolor: Drop legacy shortcut with localized key --- src/plugins/nightcolor/nightcolormanager.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/plugins/nightcolor/nightcolormanager.cpp b/src/plugins/nightcolor/nightcolormanager.cpp index db99d270f1..dc88c58163 100644 --- a/src/plugins/nightcolor/nightcolormanager.cpp +++ b/src/plugins/nightcolor/nightcolormanager.cpp @@ -79,15 +79,6 @@ NightColorManager::NightColorManager() // we may always read in the current config readConfig(); - // legacy shortcut with localized key (to avoid breaking existing config) - // TODO Plasma 6: Remove it. - if (i18n("Toggle Night Color") != QStringLiteral("Toggle Night Color")) { - QAction toggleActionLegacy; - toggleActionLegacy.setProperty("componentName", QStringLiteral("kwin")); - toggleActionLegacy.setObjectName(i18n("Toggle Night Color")); - KGlobalAccel::self()->removeAllShortcuts(&toggleActionLegacy); - } - QAction *toggleAction = new QAction(this); toggleAction->setProperty("componentName", QStringLiteral("kwin")); toggleAction->setObjectName(QStringLiteral("Toggle Night Color"));