Fix GTK warnings

This commit is contained in:
Xpl0itU 2023-08-26 19:20:53 +02:00
parent 40d174fd4e
commit 2d7d23fc68
4 changed files with 25 additions and 31 deletions

View file

@ -19,7 +19,6 @@ import (
"unsafe"
"github.com/gotk3/gotk3/glib"
"github.com/gotk3/gotk3/gtk"
"golang.org/x/sync/errgroup"
)
@ -48,9 +47,7 @@ func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedConte
glib.IdleAdd(func() {
progress.bar.SetFraction(float64(progressInt) / 100)
})
for gtk.EventsPending() {
gtk.MainIteration()
}
forceUpdateUI()
}
time.Sleep(time.Millisecond * 10)
}