Set componentDisplayName for shortcut migration

Otherwise the binary name is used as display name, causing all kwin
shortcuts to be registered under kwin-6.0-delete-desktop-switching-shortcuts
wilder/Plasma/6.2
Nicolas Fella 2 years ago
parent 4045b3b389
commit afa450b97a
  1. 1
      kconf_update/kwin-6.0-delete-desktop-switching-shortcuts.cpp

@ -25,6 +25,7 @@ int main(int argc, char **argv)
QAction action;
action.setObjectName(actionName);
action.setProperty("componentName", QStringLiteral("kwin"));
action.setProperty("componentDisplayName", QStringLiteral("KWin"));
KGlobalAccel::self()->setShortcut(&action, {QKeySequence()}, KGlobalAccel::NoAutoloading);
KGlobalAccel::self()->removeAllShortcuts(&action);
}

Loading…
Cancel
Save