Commit b731a33
fix(ui): 跟踪鼠标开关刷新后被重置——save 时序早于 window 变量更新
handleTrackingChange 先调 saveNEKOSettings() 再跑 _onMouseTrackingToggle,
而 saveSettings 从 window.mouseTrackingEnabled 读值落盘,导致持久化的是切换
前的旧值。把保存挪到回调之后,与 mode/hoverFade/画质等其它开关的写序对齐。
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 775cc6a commit b731a33
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | | - | |
| 1180 | + | |
| 1181 | + | |
1181 | 1182 | | |
1182 | 1183 | | |
1183 | 1184 | | |
| 1185 | + | |
1184 | 1186 | | |
1185 | 1187 | | |
1186 | 1188 | | |
| |||
0 commit comments