Skip to content

Commit

Permalink
Merge pull request adobe#2834 from adobe/glenn/help-divider
Browse files Browse the repository at this point in the history
Remove extra divider from help menu
  • Loading branch information
peterflynn committed Feb 9, 2013
2 parents 8910874 + a202845 commit 722f7ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/command/Menus.js
Expand Up @@ -1113,12 +1113,18 @@ define(function (require, exports, module) {
menu.addMenuItem(Commands.HELP_SHOW_EXT_FOLDER);


menu.addMenuDivider();
var hasAboutItem = (brackets.platform !== "mac" || brackets.inBrowser);

// Add final divider only if we have a twitter URL or about item
if (hasAboutItem || brackets.config.twitter_url) {
menu.addMenuDivider();
}

if (brackets.config.twitter_url) {
menu.addMenuItem(Commands.HELP_TWITTER);
}
// supress redundant about menu item in mac shell
if (brackets.platform !== "mac" || brackets.inBrowser) {
if (hasAboutItem) {
menu.addMenuItem(Commands.HELP_ABOUT);
}

Expand Down

0 comments on commit 722f7ec

Please sign in to comment.