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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user