2
0
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:
Minizbot2012 2021-07-28 02:54:36 -04:00
parent f3b93b96e3
commit b428dd7b81

View File

@ -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)