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,7 +36,7 @@ func NewWidget(app *tview.Application, settings *Settings) *Widget {
|
||||
func (widget *Widget) Refresh() {
|
||||
result := widget.execute()
|
||||
|
||||
ansiTitle := tview.TranslateANSI(widget.CommonSettings.Title)
|
||||
ansiTitle := tview.TranslateANSI(widget.CommonSettings().Title)
|
||||
if ansiTitle == defaultTitle {
|
||||
ansiTitle = tview.TranslateANSI(widget.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user