mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-12 22:26:15 -04:00
Fix freeze on decryption
This commit is contained in:
parent
0102dabe4b
commit
1f1566e8a0
1 changed files with 5 additions and 0 deletions
|
@ -16,6 +16,8 @@ import "C"
|
|||
import (
|
||||
"fmt"
|
||||
"unsafe"
|
||||
|
||||
"github.com/gotk3/gotk3/gtk"
|
||||
)
|
||||
|
||||
//export callProgressCallback
|
||||
|
@ -36,6 +38,9 @@ func DecryptContents(path string, progress *ProgressWindow, deleteEncryptedConte
|
|||
|
||||
for progressInt := range progressChan {
|
||||
progress.bar.SetFraction(float64(progressInt) / 100)
|
||||
for gtk.EventsPending() {
|
||||
gtk.MainIteration()
|
||||
}
|
||||
}
|
||||
|
||||
if err := <-errorChan; err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue