tw93 / Pake

🤱🏻 Turn any webpage into a desktop app with Rust. 🤱🏻 利用 Rust 轻松构建轻量级多端桌面应用
MIT License
29.18k stars 5.06k forks source link

macOS 关闭使用隐藏替代最小化 #697

Closed Skyxim closed 5 months ago

Skyxim commented 5 months ago

Search before asking

Motivation

最小化和关闭由于关闭的重写变成了同一个功能,在 macOS 上常见替代关闭的效果是隐藏

Solution

 tauri::AppHandle::hide(&event.window().app_handle()).unwrap();

使用其可简单实现,将其他换成调之前的最小化代码

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

Storm4542 commented 5 months ago

确实有这个情况

tw93 commented 5 months ago

有道理,我去修复一下

tw93 commented 5 months ago

已经修复,最近发布一个版本 https://github.com/tw93/Pake/commit/7b94f5ba78e972ba52058f7d0b27a5ee2fa689bb#diff-2f5e0a90d4195e9986f5e24928dce16b59a80a2cf30f7059b38d55bd7d1eff69R49

tw93 commented 4 months ago

npm i pake-cli -g

发布了 2.3.8 版本