Repository navigation
No menu for you - #1082
Merged
Merged
No menu for you#1082
Conversation
Member
|
#991 has been merged 🎉 |
Contributor
Author
|
It looks like this could use some of the work in #1093 too. |
Contributor
Author
|
This is ready 🙏 I originally went down the path of trying to recursively disable menu items when their parent was disabled, but it ended up being hairier than this problem really deserved. |
iAmWillShepherd
self-requested a review
March 31, 2017 17:19
iAmWillShepherd
approved these changes
Mar 31, 2017
| return 'maximized' | ||
| } else if (window.isMinimized()) { | ||
| return 'minimized' | ||
| } else if (!window.isVisible()) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| const windowOpen = state.windowState !== 'hidden' | ||
| const repositoryActive = windowOpen && repositorySelected | ||
| if (repositoryActive) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #982
Note that I didn't bother disabling the "New Branch" menu item in the
+menu, since that's going away in #1065.This is ready but let's hold off on it until #991 lands and I can see how they interact.