MDeX-1.4.1
v1.4.1
窗口关闭热修(hotfix):点窗口关闭按钮(红×)完全无反应,仅 ⌘Q 能退出。
修复 / Fixes
- 修复点窗口关闭按钮(红× / 关闭)完全无反应:主窗口注册了
onCloseRequested拦截器(用
于关窗前确认未保存标签)后,Tauri 会无条件挡掉原生关闭、改由 JS 默认动作destroy()落实关闭;而destroy()需要core:window:allow-destroy权限,原capabilities/default.json只配了allow-close、漏配allow-destroy,导致"放行关闭"被权限系统拒绝、窗口关不掉(⌘W 关标签、⌘Q 退出不经此路径,故不受影响)。补上core:window:allow-destroy。
Fix: clicking the window close button (red ×) did nothing. With anonCloseRequestedinterceptor registered, Tauri blocks the native close and defers to the JS default actiondestroy(), which requires thecore:window:allow-destroycapability — missing fromdefault.json(onlyallow-closewas granted). Closing via the button (and the post-save-confirm path) now works; ⌘W / ⌘Q were unaffected.