mirror of
https://github.com/YuJunZhiXue/dsh-purge.git
synced 2026-11-28 05:30:22 +08:00
fix: 发布 1.1.40,适配 DSH 0.2.0 并应用后自动重启
Anthropic OAuth 去掉 Claude Code 首段;移除 0.2 无效的 patch 41;应用成功后自动重启宿主。
This commit is contained in:
1 parent
be2189d290
commit
3bc63beca4
7 files changed
+97
-67
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user