Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the Close... actions to a nested menu on the tab #15250

Merged
merged 1 commit into from
Apr 28, 2023

Conversation

zadjii-msft
Copy link
Member

A resurrection of the original nested "Close" menu from #7728. We discovered that nested flyouts crash in #8238. Those are fixed now though! So we can bring this back.

This also includes the "Close Pane" item from #15198.

on a tab with panes:

image

on a tab without panes:

image

@DHowett DHowett enabled auto-merge (squash) April 28, 2023 23:03
@@ -1423,7 +1423,9 @@ namespace winrt::TerminalApp::implementation
}
}
});
_AppendCloseMenuItems(contextMenuFlyout);
auto closeSubMenu = _AppendCloseMenuItems(contextMenuFlyout);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am a little bit weirded out by this returning a menu into which we then insert another thing, but also. whatever. that's cool :)

@DHowett DHowett merged commit c4944c3 into main Apr 28, 2023
@DHowett DHowett deleted the dev/migrie/b/nested-close branch April 28, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants