Brooklyn/plasma/desktoppackage/contents/updates/digitalclock_rename_timezonedisplay_key.js
Scare Crowe d2ebfd0519 QortalOS Titan 5.60.12
Screw the description like that inbred T3Q
2022-03-05 21:17:59 +05:00

24 lines
882 B
JavaScript

// Find all digital clock applets in all containments and change
// displayTimezoneAsCode=false
// to
// displayTimezoneFormat=FullText
// See https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/751
var containments = desktops().concat(panels());
for (var i in containments) {
var cont = containments[i];
for (var j in cont.widgetIds) {
var widget = cont.widgetById(cont.widgetIds[j]);
if (widget.type == "org.kde.plasma.digitalclock") {
widget.currentConfigGroup = new Array('Appearance')
if (widget.readConfig("displayTimezoneAsCode", true) == false) {
widget.writeConfig("displayTimezoneFormat", "FullText")
// Work around not being able to delete config file keys using widget interface
widget.writeConfig("displayTimezoneAsCode", "")
}
}
}
}