Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 2 tasks
Skyxim opened this issue Apr 8, 2024 · 4 comments
Closed
1 of 2 tasks

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

Skyxim opened this issue Apr 8, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Skyxim
Copy link

Skyxim commented Apr 8, 2024

Search before asking

  • 我在 issues 列表中搜索,没有找到类似的内容。
    I searched in the issues and found nothing similar.

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?

  • I'm willing to submit a PR!
@Skyxim Skyxim added the enhancement New feature or request label Apr 8, 2024
@Storm4542
Copy link

确实有这个情况

@tw93
Copy link
Owner

tw93 commented Apr 21, 2024

有道理,我去修复一下

@tw93
Copy link
Owner

tw93 commented Apr 28, 2024

已经修复,最近发布一个版本
7b94f5b#diff-2f5e0a90d4195e9986f5e24928dce16b59a80a2cf30f7059b38d55bd7d1eff69R49

@tw93 tw93 closed this as completed Apr 28, 2024
@tw93
Copy link
Owner

tw93 commented May 7, 2024

npm i pake-cli -g

发布了 2.3.8 版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants