Permalink
Browse files

Remove extra divider from help menu.

  • Loading branch information...
gruehle committed Feb 8, 2013
1 parent 8ff9a81 commit a202845f78f13d25bf343dda5eb97223c8294280
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/command/Menus.js
View
@@ -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);
}

0 comments on commit a202845

Please sign in to comment.