Fix windows systray icon just hanging out (#2330)

This commit is contained in:
kermieisinthehouse
2022-02-17 20:03:41 -08:00
committed by GitHub
parent 358545579a
commit 36ce75c8c6
5 changed files with 16 additions and 3 deletions

View File

@@ -811,7 +811,17 @@ func nativeLoop() {
}
func quit() {
const WM_CLOSE = 0x0010
const (
WM_ENDSESSION = 0x0016
WM_CLOSE = 0x0010
)
pPostMessage.Call(
uintptr(wt.window),
WM_ENDSESSION,
0,
0,
)
pPostMessage.Call(
uintptr(wt.window),