Skip to content

Commit

Permalink
Revert "Fix showing a dialog multiple times (#12625)"
Browse files Browse the repository at this point in the history
This reverts commit 2e78ebf.
  • Loading branch information
zadjii-msft committed Apr 6, 2022
1 parent e93325a commit 7c017fc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/cascadia/TerminalApp/AppLogic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,7 @@ namespace winrt::TerminalApp::implementation
}

_dialog = dialog;
// GH#12622: After the dialog is displayed, always clear it out. If we
// don't, we won't be able to display another!
const auto cleanup = wil::scope_exit([this]() {
_dialog = nullptr;
});

// IMPORTANT: This is necessary as documented in the ContentDialog MSDN docs.
// Since we're hosting the dialog in a Xaml island, we need to connect it to the
// xaml tree somehow.
Expand Down

0 comments on commit 7c017fc

Please sign in to comment.