Skip to content
Snippets Groups Projects
Unverified Commit d7a1eecf authored by Kali Kaneko's avatar Kali Kaneko
Browse files

[pkg] vendor fix for the separator in windows

parent 59daf6c6
No related branches found
No related tags found
No related merge requests found
2018-11-14
-----------------
* vendor getlantern/systray with PR #74, to work around menu positioning bug in windows.
* manually add a patch for the 18x18 icon size for mac
* vendor PR #76 too (add separator to visibleitems)
......@@ -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)),
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment