trying to update save file on save

This commit is contained in:
Chris Cochrun 2023-09-20 06:16:49 -05:00
parent 85f43fcc76
commit 538a001474
2 changed files with 65 additions and 14 deletions

View file

@ -222,7 +222,6 @@ Kirigami.ApplicationWindow {
title: "Pick a Sound Effect"
folder: shortcuts.home
/* fileMode: FileDialog.SaveFile */
/* defaultSuffix: ".pres" */
selectExisting: true
onAccepted: {
soundEffect = loadFileDialog.fileUrl;
@ -253,6 +252,8 @@ Kirigami.ApplicationWindow {
function save(file) {
const saved = mainPage.serviceItems.save(file);
saved ? RSettings.setSaveFile(file)
: console.log("File: " + file + " wasn't saved");
saved ? showPassiveNotification("SAVED! " + file)
: showPassiveNotification("FAILED!");
}