[Wallpaper Configuration] Hide Get New Stuff if disabled by KIOSK
ClosedPublic

Authored by broulik on Aug 3 2017, 8:38 AM.

Details

Summary

KCMs can be individually disabled by KIOSK if desired but wallpaper configuration cannot (unless you lock down Plasma completely). Hence, at least honoring the ghns restriction here, until we have a proper solution (that is a QtQuick equivalent of KNS3::Button).
Also, KNS3::DownloadDialog refuses to open when ghns is restricted *but* this applies only to using open() or exec() but not a blatant show() we do from QML.

Test Plan

Placed the following in kdeglobals

[KDE Action Restrictions]
ghns=false

Button did no longer show up.

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik created this revision.Aug 3 2017, 8:38 AM
Restricted Application added a project: Plasma. · View Herald TranscriptAug 3 2017, 8:38 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart accepted this revision.Aug 3 2017, 3:56 PM
This revision is now accepted and ready to land.Aug 3 2017, 3:56 PM
This revision was automatically updated to reflect the committed changes.