Commit 6652659c authored by Nate Graham's avatar Nate Graham 🔩

[Digital Clock] Only show Formats KCM button if the user has permission to use it

parent fc363725
......@@ -132,6 +132,7 @@ QtLayouts.ColumnLayout {
}
QtControls.Button {
visible: KCMShell.authorize("formats.desktop").length > 0
text: i18n("Change Regional Settings...")
icon.name: "preferences-desktop-locale"
onClicked: KCMShell.open("formats.desktop")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment