Skip to content

Commit

Permalink
Fixed for Savelilypond LY (sugarlabs#4287)
Browse files Browse the repository at this point in the history
  • Loading branch information
FirePheonix authored and Ubayed-Bin-Sufian committed Jan 24, 2025
1 parent 7f133ce commit 7cfe57c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/SaveInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,7 @@ class SaveInterface {
* @instance
*/
afterSaveLilypond(filename) {
filename = docById("fileName").value;
const ly = saveLilypondOutput(this.activity);
switch (this.notationConvert) {
case "pdf":
Expand All @@ -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');
Expand Down
2 changes: 2 additions & 0 deletions js/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7cfe57c

Please sign in to comment.