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

clear widgets after live-reloading

This commit is contained in:
Hossein Mehrabi 2018-06-08 02:37:13 +04:30
parent af98a750f1
commit 75c0362b52

2
wtf.go
View File

@ -203,6 +203,8 @@ func addWidget(app *tview.Application, pages *tview.Pages, widgetName string) {
} }
func makeWidgets(app *tview.Application, pages *tview.Pages) { func makeWidgets(app *tview.Application, pages *tview.Pages) {
Widgets = []wtf.Wtfable{}
// Always in alphabetical order // Always in alphabetical order
bamboohr.Config = Config bamboohr.Config = Config
bittrex.Config = Config bittrex.Config = Config