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

This commit is contained in:
gmp
2019-09-06 10:59:18 -04:00
parent 7b3d59a581
commit 94c1d57933
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -365,7 +365,8 @@ func eventLoop() {
}
} else {
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())
lst.End(dims)
if btn.Clicked() {
@@ -382,7 +383,7 @@ func eventLoop() {
log(Info, "Can't decrypt ", name)
log(Info, err)
}
}(pathnames[lst.Index()])
}(pathnames[i])
}
}
c2 = flex.End(lst.Layout())