Skip to content

Commit

Permalink
chore: remove unused file save dialog code from main window
Browse files Browse the repository at this point in the history
  • Loading branch information
pteich committed Feb 19, 2025
1 parent 1cd2126 commit 550bf3e
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions windows/mainwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,36 +447,4 @@ func (mw *MainWindow) handleDownload(ctx context.Context) {
}, mw.window)

folderSaveDialog.Show()

/*
obj := mw.currentObjects[mw.selectedIndex]
fileSaveDialog := dialog.NewFileSave(func(fc fyne.URIWriteCloser, err error) {
if err != nil {
dialog.ShowError(err, mw.window)
return
}
if fc == nil {
return
}
defer fc.Close()
s3obj, err := mw.s3svc.DownloadObject(ctx, obj.Key)
if err != nil {
dialog.ShowError(err, mw.window)
return
}
defer s3obj.Close()
_, copyErr := io.Copy(fc, s3obj)
if copyErr != nil {
dialog.ShowError(copyErr, mw.window)
return
}
dialog.ShowInformation("Download", "Download finished!", mw.window)
}, mw.window)
fileSaveDialog.SetFileName(strings.ReplaceAll(obj.Key, "/", "_"))
fileSaveDialog.Show()
*/
}

0 comments on commit 550bf3e

Please sign in to comment.