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:
@@ -36,10 +36,10 @@ func (widget *Widget) Refresh() {
|
||||
teams, err := Fetch(widget.settings.apiID, widget.settings.apiKey)
|
||||
|
||||
if err != nil {
|
||||
widget.Redraw(widget.CommonSettings.Title, err.Error(), true)
|
||||
widget.Redraw(widget.CommonSettings().Title, err.Error(), true)
|
||||
} else {
|
||||
widget.teams = teams
|
||||
widget.Redraw(widget.CommonSettings.Title, widget.contentFrom(widget.teams), true)
|
||||
widget.Redraw(widget.CommonSettings().Title, widget.contentFrom(widget.teams), true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user