Skip to content

Commit 7cfe57c

Browse files
FirePheonixUbayed-Bin-Sufian
authored andcommitted
Fixed for Savelilypond LY (sugarlabs#4287)
1 parent 7f133ce commit 7cfe57c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

js/SaveInterface.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ class SaveInterface {
533533
* @instance
534534
*/
535535
afterSaveLilypond(filename) {
536+
filename = docById("fileName").value;
536537
const ly = saveLilypondOutput(this.activity);
537538
switch (this.notationConvert) {
538539
case "pdf":
@@ -559,6 +560,7 @@ class SaveInterface {
559560
*/
560561

561562
afterSaveLilypondLY(lydata, filename) {
563+
filename = docById("fileName").value;
562564
if (platform.FF) {
563565
// eslint-disable-next-line no-console
564566
console.debug('execCommand("copy") does not work on FireFox');

js/activity.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,8 @@ class Activity {
15101510
activity.save.savePNG.bind(activity.save),
15111511
activity.save.saveWAV.bind(activity.save),
15121512
activity.save.saveLilypond.bind(activity.save),
1513+
activity.save.saveLilypond.bind(afterSaveLilypond),
1514+
activity.save.afterSaveLilypondLY.bind(activity.save),
15131515
activity.save.saveAbc.bind(activity.save),
15141516
activity.save.saveMxml.bind(activity.save),
15151517
activity.save.saveBlockArtwork.bind(activity.save)

0 commit comments

Comments
 (0)