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

Enabled half-measure: widgets won't run if disabled (still need to not display)

This commit is contained in:
Chris Cummer
2018-04-07 14:20:21 -07:00
committed by Chris Cummer
parent b4bc6d4509
commit ae13d52665
12 changed files with 42 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ type TextWidget struct {
func NewTextWidget(name string, configKey string) TextWidget {
widget := TextWidget{
Enabled: Config.UBool(fmt.Sprintf("wtf.%s.refreshInterval", configKey), false),
Enabled: Config.UBool(fmt.Sprintf("wtf.%s.enabled", configKey), false),
Name: name,
RefreshInt: Config.UInt(fmt.Sprintf("wtf.%s.refreshInterval", configKey)),
}