mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 10:20:22 +08:00
fix: 发布 1.1.27,修应用重启后进规则设定仍弹「需要重启」
- 手动应用成功后写入 applied 戳,避免重启 settle 误判未对齐再要求重启 - 点重启时清掉 boot_full_quit 粘性标记;status 按布尔值同步弹窗 - web waitForRestart 必须先看到旧进程掉线再判定成功,避免同进程误刷新又弹窗 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
b6324250bd
commit
1f5c2ff6e2
4 files changed
+23
-4
No files matched your search
@@ -1232,6 +1232,8 @@ function installWebServer(ctx, cfg) {
|
||||
pendingQuit = Boolean(swapped?.pending);
|
||||
}
|
||||
const leaveTray = renamed || pendingQuit;
|
||||
if (complete) reapply.markPatchesApplied();
|
||||
if (leaveTray) bootFullQuit = true;
|
||||
sendJson(response, 200, {
|
||||
ok: true,
|
||||
complete,
|
||||
@@ -1371,6 +1373,8 @@ function installWebServer(ctx, cfg) {
|
||||
try {
|
||||
const surface = hostctl.currentSurface();
|
||||
const planned = hostctl.scheduleRestart(request, ctx);
|
||||
// 用户已点重启:清掉粘性标记,避免同进程误刷新/再进面板又弹一次。
|
||||
bootFullQuit = false;
|
||||
sendJson(response, 200, {
|
||||
ok: true,
|
||||
surface,
|
||||
|
||||
Reference in new issue
Block a user