Skip to content

No menu for you - #1082

Merged
iAmWillShepherd merged 21 commits into
masterfrom
no-menu-for-you
Mar 31, 2017
Merged

iAmWillShepherd merged 21 commits into
masterfrom
no-menu-for-you

Conversation

@joshaber

Copy link
Copy Markdown
Contributor

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.

@shiftkey

Copy link
Copy Markdown
Member

#991 has been merged 🎉

@joshaber

Copy link
Copy Markdown
Contributor Author

It looks like this could use some of the work in #1093 too.

@joshaber joshaber changed the title [WIP] No menu for you No menu for you Mar 31, 2017
@joshaber

Copy link
Copy Markdown
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
iAmWillShepherd self-requested a review March 31, 2017 17:19
return 'maximized'
} else if (window.isMinimized()) {
return 'minimized'
} else if (!window.isVisible()) {

This comment was marked as spam.

Comment thread app/src/ui/app.tsx

const windowOpen = state.windowState !== 'hidden'
const repositoryActive = windowOpen && repositorySelected
if (repositoryActive) {

This comment was marked as spam.

@iAmWillShepherd
iAmWillShepherd merged commit 507deff into master Mar 31, 2017
@iAmWillShepherd
iAmWillShepherd deleted the no-menu-for-you branch March 31, 2017 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants