summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-04-21 08:16:32 -0500
committerJeff Carr <[email protected]>2025-04-21 20:54:33 -0500
commit8eda4cf2da93f736512f2c8ec7f2cc13c47b1345 (patch)
treeabaa19334da8ab1d170013069f1d67cb76f885fe /doGui.go
parent3cd1f64d15465160770794187ca632953fdd4c86 (diff)
add --daemon
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/doGui.go b/doGui.go
index 13bba73..8a552b3 100644
--- a/doGui.go
+++ b/doGui.go
@@ -130,6 +130,10 @@ func drawWindow(win *gadgets.GenericWindow) {
}
func updateUptimeGui(uptime string) {
+ if me.status == nil {
+ // gui is not initialized
+ return
+ }
me.status.SetLabel(uptime)
datestamp := time.Now().Format("2006-01-02 15:04:03")