mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Update systray example
This commit is contained in:
parent
8d5b86fff7
commit
65d4266400
1 changed files with 1 additions and 1 deletions
|
|
@ -13,6 +13,7 @@ func main() {
|
|||
app := application.New(application.Options{
|
||||
Name: "Systray Demo",
|
||||
Description: "A demo of the Systray API",
|
||||
Assets: application.AlphaAssets,
|
||||
Mac: application.MacOptions{
|
||||
ActivationPolicy: application.ActivationPolicyAccessory,
|
||||
},
|
||||
|
|
@ -26,7 +27,6 @@ func main() {
|
|||
Frameless: true,
|
||||
AlwaysOnTop: true,
|
||||
Hidden: true,
|
||||
HTML: "<html><body><h1>This window should be centered to the icon!</h1><p>F12 should open the menu</p></body></html>",
|
||||
ShouldClose: func(window *application.WebviewWindow) bool {
|
||||
window.Hide()
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue