Skip to content

Commit

Permalink
Revert "CommandBarFlyout fix for internal bug 35782367 (#5937)" (#6103)
Browse files Browse the repository at this point in the history
This reverts commit 03a091b.

Undoing CommandBarFlyout changes because of crash regressions.
  • Loading branch information
RBrid authored Oct 14, 2021
1 parent 7901c26 commit 1f2d163
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions dev/CommandBarFlyout/CommandBarFlyout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,14 +251,11 @@ CommandBarFlyout::CommandBarFlyout()
args.Cancel(true);

commandBar->PlayCloseAnimation(
[weakThis{ get_weak() }]()
[this]()
{
if (auto strongThis = weakThis.get())
{
strongThis->m_isClosingAfterCloseAnimation = true;
strongThis->Hide();
strongThis->m_isClosingAfterCloseAnimation = false;
}
m_isClosingAfterCloseAnimation = true;
Hide();
m_isClosingAfterCloseAnimation = false;
});
}
else
Expand Down

0 comments on commit 1f2d163

Please sign in to comment.