mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
[v3 mac] Fix systray example toggle
This commit is contained in:
@@ -83,7 +83,11 @@ func main() {
|
||||
}
|
||||
|
||||
showWindow := func() {
|
||||
if justClosed {
|
||||
if runtime.GOOS == "windows" && justClosed {
|
||||
return
|
||||
}
|
||||
if window.IsVisible() {
|
||||
window.Hide()
|
||||
return
|
||||
}
|
||||
_ = systemTray.PositionWindow(window, 5)
|
||||
|
||||
Reference in New Issue
Block a user