File indexing completed on 2024-12-29 05:05:33
0001 /* 0002 SPDX-FileCopyrightText: 2023 Fushan Wen <qydwhotmail@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 /** 0008 @c showSeconds option now supports showing seconds only in the tooltip. 0009 0010 @see https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2232 0011 @since 6.0 0012 */ 0013 0014 const containments = desktops().concat(panels()); 0015 0016 containments.forEach(containment => containment.widgets("org.kde.plasma.digitalclock").forEach(widget => { 0017 widget.currentConfigGroup = ["Appearance"]; 0018 if (widget.readConfig("showSeconds", false /* Default: never show seconds */) === true /* Changed by the user */) { 0019 widget.writeConfig("showSeconds", 2 /* Always show seconds */); 0020 } 0021 }));