Skip to content

Commit

Permalink
CommandBarFlyout fix for internal bug 35782367 (#5937)
Browse files Browse the repository at this point in the history
  • Loading branch information
RBrid authored Sep 21, 2021
1 parent ff6e01d commit 03a091b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dev/CommandBarFlyout/CommandBarFlyout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,11 +251,14 @@ CommandBarFlyout::CommandBarFlyout()
args.Cancel(true);

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

0 comments on commit 03a091b

Please sign in to comment.