Skip to content

Commit

Permalink
Fix the case when items of inlined group do not add anything to the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
dionisiydk committed Oct 26, 2019
1 parent 3f542c7 commit 6454207
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ CmdMenuGroup >> registerContextMenuItemsWithBuilder: aBuilder [
contents do: [ :each |
each registerContextMenuItemsWithBuilder: aBuilder ].

self isInlined ifTrue: [ aBuilder withSeparatorAfter ]
self isInlined & aBuilder items notEmpty
ifTrue: [ aBuilder withSeparatorAfter ]
]

{ #category : #'*Commander-Activators-ContextMenu' }
Expand Down

0 comments on commit 6454207

Please sign in to comment.