[v3 mac] Fix systray example toggle

This commit is contained in:
Lea Anthony
2023-07-05 21:09:48 +10:00
parent c0b4a3ff35
commit 5d9bc4ca81
+5 -1
View File
@@ -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)