mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix up Unknown widget to work again
Store module Type in common settings to enable this Simplify the function params to be more inline with existing ones, vs being unique
This commit is contained in:
@@ -27,6 +27,7 @@ type Colors struct {
|
||||
|
||||
type Module struct {
|
||||
Name string
|
||||
Type string
|
||||
}
|
||||
|
||||
type Position struct {
|
||||
@@ -82,6 +83,7 @@ func NewCommonSettingsFromModule(name, defaultTitle string, moduleConfig *config
|
||||
|
||||
Module: Module{
|
||||
Name: name,
|
||||
Type: moduleConfig.UString("type", name),
|
||||
},
|
||||
|
||||
Position: Position{
|
||||
|
||||
Reference in New Issue
Block a user