From aecc5683d1e77fef60779f03589abdd635e5286a Mon Sep 17 00:00:00 2001 From: StageGuard <1355416608@qq.com> Date: Tue, 30 Mar 2021 17:41:47 +0800 Subject: [PATCH] override name in sheet file. --- source/SkyAutoplayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/SkyAutoplayer.js b/source/SkyAutoplayer.js index 640654e..ed62d9f 100644 --- a/source/SkyAutoplayer.js +++ b/source/SkyAutoplayer.js @@ -121,6 +121,7 @@ sheetmgr = { listener({status:2}); data.author = extraData.author; data.keyCount = extraData.keyCount; + data.name = element.name; return "[" + JSON.stringify(data) + "]"; }()), sheetmgr.encoding); parsed = eval(parsed)[0]; @@ -3170,7 +3171,7 @@ gui.dialogs.showProgressDialog(function(o) { element.download.setBackgroundDrawable(gui.utils.ripple_drawable(element.download.getMeasuredWidth(), element.download.getMeasuredHeight(), "rect")); element.download.setOnClickListener(new android.view.View.OnClickListener({ onClick: function() { threads.start(function() { - if(!element.isShowingStatusBar) sheetmgr.downloadAndLoad(element.file, {author: element.author, keyCount: element.keyCount}, function(r) { + if(!element.isShowingStatusBar) sheetmgr.downloadAndLoad(element.file, {author: element.author, keyCount: element.keyCount, name: element.name}, function(r) { switch(r.status) { case 1: { gui.run(function() {