Skip to content

Commit

Permalink
Fix possible NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Oct 14, 2024
1 parent 00f0961 commit 4f07818
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/ui/widgetpanel.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ func (w *widgetPanel) clockTick() {
}

func (w *widgetPanel) clockRefresh() {
if w.rotated == nil {
return // not yet been drawn so don't worry
}

w.clock.Text = w.formattedTime()
w.vClock.Text = w.formattedTime()
canvas.Refresh(w.clock)
Expand Down

0 comments on commit 4f07818

Please sign in to comment.