mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 08:50:22 +08:00
fix: 应用成功后自己重启一次
有新补丁或密封包还在时,点应用直接重启,不再弹出确认。没有新补丁就不重启。Windows、Linux、macOS 都退出再打开,斜杠不再干等。极简 bash 只删掉误留的镜像那一句。默认提示词继续用 default-prompt-inject.md 的加密槽,明文不进发布包。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
4655d06723
commit
71defcc3da
5 files changed
+176
-37
No files matched your search
@@ -1527,13 +1527,16 @@ body:not([data-ds-dark-theme]) .dshp-auth-ops button.primary{background:var(--ds
|
||||
text: tr("restart.incomplete", { detail: parts.join(";") }),
|
||||
});
|
||||
loadAll();
|
||||
setAskRestart(true);
|
||||
return;
|
||||
}
|
||||
if (action === "apply" && (d.restarting || d.restart_after_apply)) {
|
||||
loadAll();
|
||||
restartDsh(setNotice, function () {}, tr, hostSurfaceOf(state));
|
||||
return;
|
||||
}
|
||||
if (action === "apply") {
|
||||
setNotice({ kind: "ok", text: tr("ok.done") });
|
||||
loadAll();
|
||||
setAskRestart(true);
|
||||
return;
|
||||
}
|
||||
setNotice({ kind: "ok", text: tr("ok.done") });
|
||||
@@ -1548,7 +1551,7 @@ body:not([data-ds-dark-theme]) .dshp-auth-ops button.primary{background:var(--ds
|
||||
});
|
||||
};
|
||||
run();
|
||||
}, [loadAll, rejectNeedPrompt]);
|
||||
}, [loadAll, rejectNeedPrompt, state]);
|
||||
|
||||
const saveOverride = useCallback(() => {
|
||||
const tr = t;
|
||||
|
||||
Reference in new issue
Block a user