Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,15 @@ func (m *Menu) initMenuItemInfoFromAction(mii *win.MENUITEMINFO, action *Action)
if bmp, err := iconCache.Bitmap(action.image, dpi); err == nil {
mii.HbmpItem = bmp.hBmp
}
case action.IsSeparator():
default:
}

// Being a separator is not mutually-exclusive to being an image or
// owner-draw item, so we must perform this check separately from the
// switch above.
if action.IsSeparator() {
mii.FType |= win.MFT_SEPARATOR
setString = false
default:
}

if setString {
Expand Down