From 3f72623c034d40a9a619aea62d5f260fc5aa2681 Mon Sep 17 00:00:00 2001 From: Xpl0itU <24777100+Xpl0itU@users.noreply.github.com> Date: Fri, 4 Aug 2023 15:31:37 +0200 Subject: [PATCH] Fix again --- cmd/WiiUDownloader/mainwindow.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/WiiUDownloader/mainwindow.go b/cmd/WiiUDownloader/mainwindow.go index 32fe1ff..63150db 100644 --- a/cmd/WiiUDownloader/mainwindow.go +++ b/cmd/WiiUDownloader/mainwindow.go @@ -367,19 +367,13 @@ func (mw *MainWindow) ShowAll() { if err != nil { return } - dialog, err := gtk.FileChooserNativeDialogNew("Select a path to save the games to", mw.window, gtk.FILE_CHOOSER_ACTION_SELECT_FOLDER, "Select", "Cancel") + selectedPath, err := dialog.Directory().Title("Select a path to save the games to").Browse() if err != nil { - mw.logger.Fatal("Unable to create dialog:", err) - } - res := dialog.Run() - if res != int(gtk.RESPONSE_ACCEPT) { if mw.progressWindow.Window.IsVisible() { mw.progressWindow.Window.Close() } return } - - selectedPath := dialog.FileChooser.GetFilename() mw.progressWindow.Window.ShowAll() go func() {