diff options
| author | Jeff Carr <[email protected]> | 2025-04-21 08:16:32 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-04-21 20:54:33 -0500 |
| commit | 8eda4cf2da93f736512f2c8ec7f2cc13c47b1345 (patch) | |
| tree | abaa19334da8ab1d170013069f1d67cb76f885fe /doGui.go | |
| parent | 3cd1f64d15465160770794187ca632953fdd4c86 (diff) | |
add --daemon
Diffstat (limited to 'doGui.go')
| -rw-r--r-- | doGui.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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") |
