plugins/nightcolor: Drop legacy shortcut with localized key
This commit is contained in:
parent
78e0ff6b97
commit
c1fb295cd6
1 changed files with 0 additions and 9 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue