dsh-aupdate 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client.js +5 -0
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -1229,6 +1229,11 @@ window.__ModuleLoader__.load({
1229
1229
  useEffect(() => () => {
1230
1230
  if (timerRef.current !== null) clearTimeout(timerRef.current)
1231
1231
  }, [])
1232
+ // 显示开关一改就刷镜像:就地重载是在 1.2 秒后发生的,那时 apply() 读的
1233
+ // 就是这份镜像——不跟着改,切换会看起来「没生效」,要再加载一次才对。
1234
+ useEffect(() => {
1235
+ if (draft !== null) writeDisplay(draft)
1236
+ }, [draft])
1232
1237
 
1233
1238
 
1234
1239
  /** 把后端进度翻成一行中文/英文;没进度就退回普通「正在检查」。 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-aupdate",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "type": "module",
5
5
  "description": "定时检查 DSH 插件更新,串行安装后就地生效,不重启;支持多种调度节奏、失败抑制、按包回滚,并在动手前留快照、忙时自动让开;不更新/只更新哪些插件改成勾选,发现更新在右下角提醒,日志最新在最上面,并在「设置 → 插件更新」里有独立一页。",
6
6
  "license": "MIT",