[Containment] Don't load containment actions with plasma/containment_actions KIOSK restriction
Allows disabling all containment actions, such as context menus, middle click paste, wheel desktop switch, etc. Differential Revision: https://phabricator.kde.org/D14045
This commit is contained in:
parent
25536d86aa
commit
0351ea74b2
@ -187,7 +187,7 @@ void Containment::restore(KConfigGroup &group)
|
|||||||
restoreContents(group);
|
restoreContents(group);
|
||||||
setImmutability((Types::ImmutabilityType)group.readEntry("immutability", (int)Types::Mutable));
|
setImmutability((Types::ImmutabilityType)group.readEntry("immutability", (int)Types::Mutable));
|
||||||
|
|
||||||
if (isContainment()) {
|
if (isContainment() && KAuthorized::authorize(QStringLiteral("plasma/containment_actions"))) {
|
||||||
KConfigGroup cfg = KConfigGroup(corona()->config(), "ActionPlugins");
|
KConfigGroup cfg = KConfigGroup(corona()->config(), "ActionPlugins");
|
||||||
cfg = KConfigGroup(&cfg, QString::number(containmentType()));
|
cfg = KConfigGroup(&cfg, QString::number(containmentType()));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user