summaryrefslogtreecommitdiff
path: root/vendor/github.com/getlantern/systray/systray_windows.go
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2018-11-29 23:40:15 +0100
committerKali Kaneko (leap communications) <kali@leap.se>2018-11-29 23:40:15 +0100
commitd7a1eecfd9d40c7c114f9ecab8180e00107766ec (patch)
treeaa5c0280b0ae9f0a6ffab095bf752a8c7f897a09 /vendor/github.com/getlantern/systray/systray_windows.go
parent59daf6c6ed64d58e8903db35637527fa46ed9c94 (diff)
[pkg] vendor fix for the separator in windows0.18.11
Diffstat (limited to 'vendor/github.com/getlantern/systray/systray_windows.go')
-rw-r--r--vendor/github.com/getlantern/systray/systray_windows.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/vendor/github.com/getlantern/systray/systray_windows.go b/vendor/github.com/getlantern/systray/systray_windows.go
index 9d560b7..ae9c838 100644
--- a/vendor/github.com/getlantern/systray/systray_windows.go
+++ b/vendor/github.com/getlantern/systray/systray_windows.go
@@ -508,9 +508,12 @@ func (t *winTray) addSeparatorMenuItem(menuId int32) error {
mi.Size = uint32(unsafe.Sizeof(mi))
+ t.addToVisibleItems(menuId)
+ position := t.getVisibleItemIndex(menuId)
+
res, _, err := pInsertMenuItem.Call(
uintptr(t.menu),
- uintptr(menuId),
+ uintptr(position),
1,
uintptr(unsafe.Pointer(&mi)),
)