✨ hide-on-close support param
This commit is contained in:
@@ -285,7 +285,12 @@ Specify the system tray icon. This is only effective when the system tray is ena
|
||||
Hide window instead of closing the application when clicking close button. Platform-specific default: `true` for macOS, `false` for Windows/Linux.
|
||||
|
||||
```shell
|
||||
# Hide on close (default behavior on macOS)
|
||||
--hide-on-close
|
||||
--hide-on-close true
|
||||
|
||||
# Close application immediately (default behavior on Windows/Linux)
|
||||
--hide-on-close false
|
||||
```
|
||||
|
||||
#### [title]
|
||||
|
||||
@@ -284,7 +284,12 @@ pake https://github.com --name GitHub
|
||||
点击关闭按钮时隐藏窗口而不是退出应用程序。平台特定默认值:macOS 为 `true`,Windows/Linux 为 `false`。
|
||||
|
||||
```shell
|
||||
# 关闭时隐藏(macOS 默认行为)
|
||||
--hide-on-close
|
||||
--hide-on-close true
|
||||
|
||||
# 立即关闭应用程序(Windows/Linux 默认行为)
|
||||
--hide-on-close false
|
||||
```
|
||||
|
||||
#### [title]
|
||||
|
||||
Reference in New Issue
Block a user