trying to update save file on save
This commit is contained in:
parent
85f43fcc76
commit
538a001474
2 changed files with 65 additions and 14 deletions
|
@ -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!");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue