1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Simplifies the use of MultiSourceWidget

Widgets that embed MultiSourceWidget no longer have to explicitly call
loadSources(). This is done as part of the set-up for MultiSourceWidget.
This commit is contained in:
Chris Cummer
2019-04-28 20:43:39 -07:00
parent 9d7b91a024
commit ed8d357881
5 changed files with 52 additions and 32 deletions

View File

@@ -45,7 +45,6 @@ func NewWidget(app *tview.Application, pages *tview.Pages, settings *Settings) *
settings: settings,
}
widget.LoadSources()
widget.SetDisplayFunction(widget.display)
widget.HelpfulWidget.SetView(widget.View)