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

Get --module=[modname] working again (broke when position config validation was added)

This commit is contained in:
Chris Cummer
2019-07-06 01:55:54 -07:00
parent 2b2cdf912b
commit 2da3344612
5 changed files with 19 additions and 9 deletions

View File

@@ -223,6 +223,7 @@ func MakeWidgets(app *tview.Application, pages *tview.Pages, config *config.Conf
for mod := range mods {
modConfig, _ := config.Get("wtf.mods." + mod)
widgetType := modConfig.UString("type", mod)
if enabled := modConfig.UBool("enabled", false); enabled {
widget := MakeWidget(app, pages, mod, widgetType, modConfig, config)
widgets = append(widgets, widget)