mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-24 20:14:40 -04:00
Add decryption progress
This commit is contained in:
parent
5c5f326ae4
commit
8213612319
2 changed files with 8 additions and 10 deletions
|
@ -22,11 +22,13 @@ var (
|
|||
decryptionError = false
|
||||
)
|
||||
|
||||
func decryptContents(path string, progress *int) error {
|
||||
func decryptContents(path string, progress *ProgressWindow) error {
|
||||
wg.Add(1)
|
||||
go runDecryption(path, progress)
|
||||
progressInt := 0
|
||||
go runDecryption(path, &progressInt)
|
||||
for !decryptionDone {
|
||||
fmt.Println(*progress)
|
||||
progress.bar.SetFraction(float64(progressInt) / 100)
|
||||
progress.percentLabel.SetText(fmt.Sprintf("Decrypting... (%d%%)", progressInt))
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue