Skip to content

Commit daf03ba

Browse files
codecruisedorDHowett
authored andcommitted
Dismiss flyouts before opening warning dialog when exiting app (#16075)
Updated the function `TerminalPage::CloseWindow` to include logic for closing context and flyout menus so that they are dismissed before the warning is displayed. Closes #16039 (cherry picked from commit aafb917) Service-Card-Id: 90731988 Service-Version: 1.18
1 parent 335abe3 commit daf03ba

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/cascadia/TerminalApp/TerminalPage.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1941,6 +1941,11 @@ namespace winrt::TerminalApp::implementation
19411941
_settings.GlobalSettings().ConfirmCloseAllTabs() &&
19421942
!_displayingCloseDialog)
19431943
{
1944+
if (_newTabButton && _newTabButton.Flyout())
1945+
{
1946+
_newTabButton.Flyout().Hide();
1947+
}
1948+
_DismissTabContextMenus();
19441949
_displayingCloseDialog = true;
19451950
auto warningResult = co_await _ShowCloseWarningDialog();
19461951
_displayingCloseDialog = false;

0 commit comments

Comments
 (0)