fix: 发布 1.1.40,适配 DSH 0.2.0 并应用后自动重启

Anthropic OAuth 去掉 Claude Code 首段;移除 0.2 无效的 patch 41;应用成功后自动重启宿主。
This commit is contained in:
叫我小杨同学 committed 2026-09-30 01:07:24 +08:00
1 parent be2189d290
commit 3bc63beca4
7 files changed
+97 -67

No files matched your search

+7 -7
View File
@@ -1293,12 +1293,6 @@ body[data-ds-dark-theme] .dshp-dock-body .dshp-switch button.is-on{background:#3
setNotice({ kind: "error", text: tr("err.action", { action: label, error: d.error || "" }) });
return;
}
if (action === "apply" && (d.unpacked_asar || d.needs_full_quit)) {
setAskOfficialRestart(true);
setNotice({ kind: "ok", text: tr("restart.official.body") });
loadAll();
return;
}
if (action === "apply") {
if (typeof d.defaultContent === "string") setDefaultOverride(d.defaultContent);
if (typeof d.override_content === "string") {
@@ -1335,9 +1329,15 @@ body[data-ds-dark-theme] .dshp-dock-body .dshp-switch button.is-on{background:#3
loadAll();
return;
}
if (action === "apply" && (d.restart_after_apply || d.restarting || d.unpacked_asar || d.needs_full_quit)) {
setNotice({ kind: "ok", text: tr("update.restarting") });
loadAll();
const surf = hostSurfaceOf(state) || clientGuessSurface() || "web";
restartDsh(setNotice, setPatchBusy, tr, surf);
return;
}
setNotice({ kind: "ok", text: tr("ok.done") });
loadAll();
if (action === "apply") setAskRestart(true);
})
.catch((e) => {
if (ticket !== actionTicket.current) return;