Fix crash on launch on macOS

This commit is contained in:
Xpl0itU 2023-08-11 14:57:27 +02:00
parent 9bb15fce53
commit 6943cd569e
3 changed files with 20 additions and 14 deletions

View file

@ -33,7 +33,7 @@ type ProgressWindow struct {
cancelled bool
}
func CreateProgressWindow(parent *gtk.Window) (ProgressWindow, error) {
func CreateProgressWindow(parent *gtk.ApplicationWindow) (ProgressWindow, error) {
win, err := gtk.WindowNew(gtk.WINDOW_TOPLEVEL)
if err != nil {
return ProgressWindow{}, err