fixing save accepting .pres and no .pres extension in the name

This commit is contained in:
Chris Cochrun 2022-11-30 11:25:49 -06:00
parent 37c7038f6f
commit 5e7fde14c6
2 changed files with 9 additions and 2 deletions

View file

@ -122,7 +122,7 @@ Kirigami.ApplicationWindow {
defaultSuffix: ".pres"
selectExisting: false
onAccepted: {
save(saveFileDialog.fileUrl + ".pres");
save(saveFileDialog.fileUrl);
}
onRejected: {
print("Canceled")