Skip to content

Commit 104199a

Browse files
systemUptime@KopfdesDaemons: Fix frozen uptime in the layout with disabled icon (#1814)
1 parent 58d3188 commit 104199a

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

systemUptime@KopfDesDaemons/files/systemUptime@KopfDesDaemons/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## [2.0.1] - 09.04.2026
4+
5+
- Fix frozen uptime in the layout with disabled icon
6+
37
## [2.0.0] - 06.02.2026
48

59
- New features:

systemUptime@KopfDesDaemons/files/systemUptime@KopfDesDaemons/desklet.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,10 @@ class MyDesklet extends Desklet.Desklet {
150150
this._startupValue.set_style(valueStyle);
151151

152152
// Icon
153-
this._clockIcon.set_style(iconStyle);
154-
this._iconBox.set_style(iconStyle);
153+
if (this.showIcon && this._clockIcon && this._iconBox) {
154+
this._clockIcon.set_style(iconStyle);
155+
this._iconBox.set_style(iconStyle);
156+
}
155157
}
156158

157159
async _fetchUptimeText() {

systemUptime@KopfDesDaemons/files/systemUptime@KopfDesDaemons/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"uuid": "systemUptime@KopfDesDaemons",
33
"name": "System Uptime",
44
"description": "Displays the current system uptime.",
5-
"version": "2.0.0",
5+
"version": "2.0.1",
66
"max-instances": "50",
77
"author": "KopfdesDaemons"
88
}

0 commit comments

Comments
 (0)