Skip to content

Commit

Permalink
Merge pull request #1 from w0lfschild/master
Browse files Browse the repository at this point in the history
Update AfloatX.m
  • Loading branch information
jslegendre authored Nov 16, 2019
2 parents 3dbe05d + 7de2e4d commit 1e0a79f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion AfloatX/AfloatX.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ - (NSMenu *)applicationDockMenu:(NSApplication *)sender {
if (menuInjected) {
[AfloatXMenu removeItem:AfloatXItem];
AfloatXMenu = ZKOrig(NSMenu*, sender);
[AfloatXMenu addItem:[NSMenuItem separatorItem]];
// Only add a separator if last item isn't already a separator
if (!AfloatXMenu.itemArray.lastObject.isSeparatorItem)
[AfloatXMenu addItem:[NSMenuItem separatorItem]];
[AfloatXMenu addItem:AfloatXItem];
}
return AfloatXMenu;
Expand Down

0 comments on commit 1e0a79f

Please sign in to comment.