https://bugs.kde.org/show_bug.cgi?id=452649

--- Comment #10 from Nate Graham <n...@kde.org> ---
Git commit 330182246685e12b0562d57913dea7830b816139 by Nate Graham, on behalf
of Nicolas Fella.
Committed on 26/09/2024 at 13:24.
Pushed by ngraham into branch 'master'.

[kcms/keys] Don't allow to remove built-in components

Currently we allow to remove any component, but they might reappear
again because the application re-registers them or the desktop file
is picked up again.

In most cases removing doesn't make much sense in the first place
since they are core system components that a user should not be
able to remove wholesale. They can unbind individual shortcuts
that are not wanted.

This introduces logic to determine whether a component should
be removable or not. For now it only coveres desktopfile-based
shortcuts since those are easier to deal with.

The logic is:
- Things in the System Services category cannot be removed
- Things in the Applications section can be removed if the
relevant desktop file has no shortcuts defined, i.e. the user
added it explicity

Dealing with runtime-registered shortcuts is left as a future
exercise

M  +60   -11   kcms/keys/basemodel.cpp
M  +1    -0    kcms/keys/basemodel.h
M  +1    -0    kcms/keys/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/330182246685e12b0562d57913dea7830b816139

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to