mirror of
https://github.com/OrbTools/OrbBind
synced 2024-10-31 03:20:26 +00:00
fix crash on new maps
This commit is contained in:
parent
f3b93b96e3
commit
b428dd7b81
@ -16,6 +16,7 @@ func main() {
|
|||||||
window.SetMaster()
|
window.SetMaster()
|
||||||
|
|
||||||
omap := new(devices.KeyMap)
|
omap := new(devices.KeyMap)
|
||||||
|
omap.Keymap = make([]uint16, devices.DeviceTypes["orbweaver"].NumKeys)
|
||||||
//pages := make(map[string]baseui.PageWithBindings)
|
//pages := make(map[string]baseui.PageWithBindings)
|
||||||
//pages["main"] = mainpage.NewMainPage(window, omap)
|
//pages["main"] = mainpage.NewMainPage(window, omap)
|
||||||
//pages["side"] = sidepage.NewSidePage(window, omap)
|
//pages["side"] = sidepage.NewSidePage(window, omap)
|
||||||
|
Loading…
Reference in New Issue
Block a user