plugins/nightcolor: Drop legacy shortcut with localized key

This commit is contained in:
Vlad Zahorodnii 2023-01-26 20:36:38 +02:00
parent 78e0ff6b97
commit c1fb295cd6

View file

@ -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"));