From 7cfe57ccac28973a87c9b7a412f7df57f6d73ea1 Mon Sep 17 00:00:00 2001 From: Shubham Singh Date: Sun, 19 Jan 2025 04:20:18 +0530 Subject: [PATCH] Fixed for Savelilypond LY (#4287) --- js/SaveInterface.js | 2 ++ js/activity.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/js/SaveInterface.js b/js/SaveInterface.js index c5580df4f9..fb98fff0f5 100644 --- a/js/SaveInterface.js +++ b/js/SaveInterface.js @@ -533,6 +533,7 @@ class SaveInterface { * @instance */ afterSaveLilypond(filename) { + filename = docById("fileName").value; const ly = saveLilypondOutput(this.activity); switch (this.notationConvert) { case "pdf": @@ -559,6 +560,7 @@ class SaveInterface { */ afterSaveLilypondLY(lydata, filename) { + filename = docById("fileName").value; if (platform.FF) { // eslint-disable-next-line no-console console.debug('execCommand("copy") does not work on FireFox'); diff --git a/js/activity.js b/js/activity.js index ab4e9939f5..25713f65c7 100644 --- a/js/activity.js +++ b/js/activity.js @@ -1510,6 +1510,8 @@ class Activity { activity.save.savePNG.bind(activity.save), activity.save.saveWAV.bind(activity.save), activity.save.saveLilypond.bind(activity.save), + activity.save.saveLilypond.bind(afterSaveLilypond), + activity.save.afterSaveLilypondLY.bind(activity.save), activity.save.saveAbc.bind(activity.save), activity.save.saveMxml.bind(activity.save), activity.save.saveBlockArtwork.bind(activity.save)