mirror of
https://github.com/taigrr/wtf
synced 2026-03-27 13:42:21 -07:00
Further reduce usage of global
Bargraph moves to common settings "Global" config moves out of wtf and into cfg for the few things that need it We can probably eliminate a global config used across things if we want to
This commit is contained in:
@@ -56,6 +56,7 @@ type Common struct {
|
||||
Enabled bool
|
||||
RefreshInterval int
|
||||
Title string
|
||||
Config *config.Config
|
||||
|
||||
focusChar int
|
||||
}
|
||||
@@ -93,6 +94,7 @@ func NewCommonSettingsFromModule(name string, moduleConfig *config.Config, globa
|
||||
Enabled: moduleConfig.UBool("enabled", false),
|
||||
RefreshInterval: moduleConfig.UInt("refreshInterval", 300),
|
||||
Title: moduleConfig.UString("title", name),
|
||||
Config: moduleConfig,
|
||||
|
||||
focusChar: moduleConfig.UInt("focusChar", -1),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user