From 9e2668c7fd5364b4829dde723ee929e4122a70d1 Mon Sep 17 00:00:00 2001 From: StageGuard <1355416608@qq.com> Date: Thu, 19 Nov 2020 23:36:02 +0800 Subject: [PATCH] fix: stop when pause --- source/SkyAutoplayer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/SkyAutoplayer.js b/source/SkyAutoplayer.js index 0d3ac83..b6bfce4 100644 --- a/source/SkyAutoplayer.js +++ b/source/SkyAutoplayer.js @@ -285,9 +285,8 @@ sheetplayer = { java.lang.Thread.sleep(sheetplayer.nextInterval = Math.round(sheetplayer.nextInterval * sheetplayer.speed)); sheetplayer.currentNote ++; } - sheetplayer.stop(); + if(!(sheetplayer.currentNote < sheetplayer.noteCount)) sheetplayer.stop(); }); - }, stop: function() { @@ -2308,6 +2307,7 @@ gui.dialogs.showProgressDialog(function(o) { layout.addView(socialLayout); } scr.addView(layout); + return scr; }); gui.main.addPage({