Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #2834 from adobe/glenn/help-divider

Remove extra divider from help menu
  • Loading branch information...
commit 722f7ec4a1308bb2a375ba81bfb0309230cbd1d3 2 parents 8910874 + a202845
@peterflynn peterflynn authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 src/command/Menus.js
View
10 src/command/Menus.js
@@ -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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.