Skip to content

Commit 9cb78c1

Browse files
committed
Improve cancelling ux
1 parent c83ee06 commit 9cb78c1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/WiiUDownloader/progressWindow.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ func (pw *ProgressWindow) Cancelled() bool {
9898
}
9999

100100
func (pw *ProgressWindow) SetCancelled() {
101+
glib.IdleAdd(func() {
102+
pw.cancelButton.SetSensitive(false)
103+
pw.SetGameTitle("Cancelling...")
104+
})
105+
for gtk.EventsPending() {
106+
gtk.MainIteration()
107+
}
101108
pw.cancelFunc()
102109
}
103110

0 commit comments

Comments
 (0)