fix: stop when pause

This commit is contained in:
StageGuard
2020-11-19 23:36:02 +08:00
parent e6fb1926d8
commit 9e2668c7fd

View File

@@ -285,9 +285,8 @@ sheetplayer = {
java.lang.Thread.sleep(sheetplayer.nextInterval = Math.round(sheetplayer.nextInterval * sheetplayer.speed)); java.lang.Thread.sleep(sheetplayer.nextInterval = Math.round(sheetplayer.nextInterval * sheetplayer.speed));
sheetplayer.currentNote ++; sheetplayer.currentNote ++;
} }
sheetplayer.stop(); if(!(sheetplayer.currentNote < sheetplayer.noteCount)) sheetplayer.stop();
}); });
}, },
stop: function() { stop: function() {
@@ -2308,6 +2307,7 @@ gui.dialogs.showProgressDialog(function(o) {
layout.addView(socialLayout); layout.addView(socialLayout);
} }
scr.addView(layout); scr.addView(layout);
return scr; return scr;
}); });
gui.main.addPage({ gui.main.addPage({