Use suggested filename on download

This commit is contained in:
Fierelier 2023-03-13 08:59:14 +01:00
parent 028e4a3b4a
commit 7b6a358978
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ def downloadFinished(download):
def decideDestination(download,suggested_filename):
fileChooser = Gtk.FileChooserNative()
fileChooser.set_action(Gtk.FileChooserAction.SAVE)
fileChooser.set_current_name(suggested_filename)
response = fileChooser.run()
if response != Gtk.ResponseType.ACCEPT:
download.cancel()