Fix bug due to rewriten layout.List() (updated Gio version).

This commit is contained in:
Greg 2019-09-06 10:58:37 -04:00
parent 7b3d59a581
commit 94c1d57933
2 changed files with 4 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
cmd/passgo/passgo cmd/passgo/passgo
cmd/passgo-gui/passgo-gui cmd/passgo-gui/passgo-gui
nohup.out

View File

@ -365,7 +365,8 @@ func eventLoop() {
} }
} else { } else {
for lst.Init(c, q, ops, cs, len(passBtns)); lst.More(); lst.Next() { for lst.Init(c, q, ops, cs, len(passBtns)); lst.More(); lst.Next() {
btn := passBtns[lst.Index()] i := lst.Index()
btn := passBtns[i]
dims = btn.Layout(c, q, ops, lst.Constraints()) dims = btn.Layout(c, q, ops, lst.Constraints())
lst.End(dims) lst.End(dims)
if btn.Clicked() { if btn.Clicked() {
@ -382,7 +383,7 @@ func eventLoop() {
log(Info, "Can't decrypt ", name) log(Info, "Can't decrypt ", name)
log(Info, err) log(Info, err)
} }
}(pathnames[lst.Index()]) }(pathnames[i])
} }
} }
c2 = flex.End(lst.Layout()) c2 = flex.End(lst.Layout())