mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 11:30:22 +08:00
fix: 发布 1.1.55,重启后提示词稳定注入且不再误取消
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e139407af8
commit
6cdf5596cd
10 files changed
+124
-178
No files matched your search
@@ -41,3 +41,17 @@ export function settleMayReapply({ surface, sealed = false } = {}) {
|
||||
if (surface === "desktop" && sealed) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* 点「应用」后是否重启:密封 asar 还要换包就重启;否则只在这次真的写了宿主补丁时重启。
|
||||
* 冷却不放在这里——否则第一次重启没换掉 asar,第二次应用会被当成取消。
|
||||
*/
|
||||
export function applyShouldRestart({
|
||||
complete = false,
|
||||
sealed = false,
|
||||
appliedCount = 0,
|
||||
} = {}) {
|
||||
if (!complete) return false;
|
||||
if (sealed) return true;
|
||||
return Number(appliedCount) > 0;
|
||||
}
|
||||
Reference in new issue
Block a user