[FancyZones] capture strong_this (#6066)
This commit is contained in:
parent
9a36b005a1
commit
9b567f9ba3
|
@ -525,7 +525,8 @@ ZoneWindow::ShowZoneWindow() noexcept
|
|||
|
||||
SetWindowPos(window, windowInsertAfter, 0, 0, 0, 0, flags);
|
||||
|
||||
std::thread{ [=]() {
|
||||
std::thread{ [this, strong_this{ get_strong() }]() {
|
||||
auto window = m_window.get();
|
||||
AnimateWindow(window, m_showAnimationDuration, AW_BLEND);
|
||||
InvalidateRect(window, nullptr, true);
|
||||
if (!m_host->InMoveSize())
|
||||
|
|
Loading…
Reference in a new issue