Skip to content

Commit

Permalink
Merge pull request getlantern#76 from meskio/separator_windows
Browse files Browse the repository at this point in the history
Add the separator to the visible items
  • Loading branch information
thistle authored Dec 6, 2018
2 parents fe4a6d8 + 66af16a commit 305ba4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion systray_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,9 +508,11 @@ 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)),
)
Expand Down

0 comments on commit 305ba4e

Please sign in to comment.