From b4632c44f68521c461093652ede69899e9294613 Mon Sep 17 00:00:00 2001 From: Minizbot2012 Date: Wed, 10 Feb 2021 13:00:24 -0500 Subject: [PATCH] fix load -> save --- go.mod | 2 +- go.sum | 12 ++---------- orbbind.go | 3 ++- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/go.mod b/go.mod index a44cbde..c152c6a 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.15 require ( fyne.io/fyne v1.4.3 - github.com/OrbTools/OrbCommon v0.0.0-20210209235647-67bb6503d1dd + github.com/OrbTools/OrbCommon v0.0.0-20210210175619-78b4b8e8e2d6 github.com/go-gl/glfw/v3.3/glfw v0.0.0-20201108214237-06ea97f0c265 // indirect github.com/kr/text v0.2.0 // indirect github.com/srwiley/oksvg v0.0.0-20210209000435-a757b9cbd472 // indirect diff --git a/go.sum b/go.sum index 01c8475..c7e6bd2 100644 --- a/go.sum +++ b/go.sum @@ -1,16 +1,8 @@ fyne.io/fyne v1.4.3 h1:356CnXCiYrrfaLGsB7qLK3c6ktzyh8WR05v/2RBu51I= fyne.io/fyne v1.4.3/go.mod h1:8kiPBNSDmuplxs9WnKCkaWYqbcXFy0DeAzwa6PBO9Z8= github.com/Kodeworks/golang-image-ico v0.0.0-20141118225523-73f0f4cfade9/go.mod h1:7uhhqiBaR4CpN0k9rMjOtjpcfGd6DG2m04zQxKnWQ0I= -github.com/OrbTools/OrbCommon v0.0.0-20210209224029-73cec4826e73 h1:9bKK432OLKXWfkG4cVZA+LNp8U+jVmc132tuwCU4bQI= -github.com/OrbTools/OrbCommon v0.0.0-20210209224029-73cec4826e73/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= -github.com/OrbTools/OrbCommon v0.0.0-20210209233138-8623fe5b8a96 h1:YyCVdiz5Yk1dyE7tdV6XATIC3aGHPiPowYrNd5I92cA= -github.com/OrbTools/OrbCommon v0.0.0-20210209233138-8623fe5b8a96/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= -github.com/OrbTools/OrbCommon v0.0.0-20210209234440-f9da0895ed81 h1:nrS6Fl/cAhYdCk8SAceFGDt1yE/wrErTu+uUo2PQYYU= -github.com/OrbTools/OrbCommon v0.0.0-20210209234440-f9da0895ed81/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= -github.com/OrbTools/OrbCommon v0.0.0-20210209235147-bc7589e327b4 h1:5OgIJHZvLkZR9v27cas4KrJy19TGQSowXoi09OAiFoE= -github.com/OrbTools/OrbCommon v0.0.0-20210209235147-bc7589e327b4/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= -github.com/OrbTools/OrbCommon v0.0.0-20210209235647-67bb6503d1dd h1:G9vKM/+GnnbkE3l08LdAahlhhJa4gUk4Qa/dCBJqLCg= -github.com/OrbTools/OrbCommon v0.0.0-20210209235647-67bb6503d1dd/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= +github.com/OrbTools/OrbCommon v0.0.0-20210210175619-78b4b8e8e2d6 h1:Ug+JXsYOxyZNmuQcMdBuGFXonQtDLwuOW/lHoE/TU08= +github.com/OrbTools/OrbCommon v0.0.0-20210210175619-78b4b8e8e2d6/go.mod h1:ErdpS2Y/8Ik89IDNsH+yaOWo/XcKzf4riEBfPG3xK+o= github.com/akavel/rsrc v0.8.0/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/orbbind.go b/orbbind.go index 3d1ea10..73b1a89 100644 --- a/orbbind.go +++ b/orbbind.go @@ -41,7 +41,8 @@ func main() { return } if reader != nil { - setter(reflect.ValueOf(orbweaver.LoadPKMKeymap(reader))) + omap := orbweaver.LoadPKMKeymap(reader) + setter(reflect.ValueOf(omap)) // pages["main"].SetBindings(omap) // pages["side"].SetBindings(omap) }