diff --git a/.gitignore b/.gitignore index f965e9a..003da32 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ cmd/passgo/passgo cmd/passgo-gui/passgo-gui +nohup.out diff --git a/cmd/passgo-gui/main.go b/cmd/passgo-gui/main.go index 69a3d27..c236dff 100644 --- a/cmd/passgo-gui/main.go +++ b/cmd/passgo-gui/main.go @@ -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())