mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Fix grid: key issue when key is present
Really do need it to work with and without a grid: key. Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
parent
5bbbda22aa
commit
b2093314f0
@ -134,8 +134,8 @@ func CalculateDimensions(moduleConfig, globalConfig *config.Config) (int, int, e
|
|||||||
return 0, 0, err
|
return 0, 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
cols := ToInts(grid.UList("wtf.grid.columns"))
|
cols := ToInts(grid.UList("columns"))
|
||||||
rows := ToInts(grid.UList("wtf.grid.rows"))
|
rows := ToInts(grid.UList("rows"))
|
||||||
|
|
||||||
// Read the source data from the config
|
// Read the source data from the config
|
||||||
left := moduleConfig.UInt("position.left", 0)
|
left := moduleConfig.UInt("position.left", 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user