Repository navigation
Close the workspace menu before showing the delete dialog - #21017
Open
Kevin Wiblin (KevinWiblin) wants to merge 1 commit into
Open
Kevin Wiblin (KevinWiblin) wants to merge 1 commit into
Kevin Wiblin (KevinWiblin) wants to merge 1 commit into
Conversation
Deleting a saved workspace from the workspace menu showed the confirmation dialog while the menu stayed open on top of it. Hide the menu first. Closes microsoft#20636
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.
Summary of the Pull Request
Right-clicking a saved workspace in the workspace menu and choosing "Delete workspace?" opened the confirmation dialog, but the menu stayed open on top of it. The menu now closes before the dialog is shown.
References and Relevant Issues
Closes #20636
#20648 made the same change (plus hiding the "Delete workspace?" flyout, which already closes itself when its item is clicked) but was closed by its author before review.
Detailed Description of the Pull Request / Additional comments
The click handler for the "Delete workspace?" item in
TerminalPage::_PopulateWorkspaceFlyoutnow calls_workspaceFlyout.Hide()before it builds and shows theContentDialog. This is the same thing_newTabButton.Flyout().Hide()does for the new tab dropdown elsewhere inTerminalPage.The existing call to
_PopulateWorkspaceFlyout()after a confirmed delete is left as it was, so the menu is still rebuilt without the deleted workspace the next time it opens.Validation Steps Performed
Built and deployed
CascadiaPackage(Debug x64):state.jsonPR Checklist