mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Reimpliments the module configuration validation
Now supports displaying errors from multiple widgets.
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
func (widget *Widget) display(clocks []Clock, dateFormat string, timeFormat string) {
|
||||
if len(clocks) == 0 {
|
||||
title := fmt.Sprintf("\n%s", " no timezone data available")
|
||||
widget.Redraw(widget.CommonSettings.Title, title, true)
|
||||
widget.Redraw(widget.CommonSettings().Title, title, true)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -28,5 +28,5 @@ func (widget *Widget) display(clocks []Clock, dateFormat string, timeFormat stri
|
||||
)
|
||||
}
|
||||
|
||||
widget.Redraw(widget.CommonSettings.Title, str, false)
|
||||
widget.Redraw(widget.CommonSettings().Title, str, false)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user