Repository navigation
Commit fa6d28f
committed
try(settings): 尝试修正快捷键弹窗协程生命周期(编译通过,待验证) / Try correcting shortcut dialog coroutine lifetime (build passed, validation pending)
中文:
- 让快捷键弹窗协程按值持有共享状态,避免 ShowAsync 完成时访问已经失效的引用
- 增加源码契约测试,禁止异步弹窗恢复依赖引用参数
English:
- Make the shortcut dialog coroutine own shared state by value so the ShowAsync continuation cannot access an expired reference
- Add a source contract test that rejects reference parameters for the asynchronous dialog continuation
验证 / Validation:
- scripts/build.bat --reload-shell(Release 构建通过,已生成 .build\\Release\\SnowDesktop.exe / Release build passed and generated .build\\Release\\SnowDesktop.exe)
- scripts/test.bat(103/103 通过 / 103/103 passed)
限制 / Limitations:
- 修正后的回车应用场景尚待用户实机复测 / The corrected Enter-to-apply scenario still requires user runtime validation1 parent 0a384bb commit fa6d28f
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
803 | 809 | | |
804 | 810 | | |
805 | 811 | | |
| |||
0 commit comments