mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-09 20:57:22 +02:00
[FancyZones] capture strong_this (#6066)
This commit is contained in:
@@ -525,7 +525,8 @@ ZoneWindow::ShowZoneWindow() noexcept
|
|||||||
|
|
||||||
SetWindowPos(window, windowInsertAfter, 0, 0, 0, 0, flags);
|
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);
|
AnimateWindow(window, m_showAnimationDuration, AW_BLEND);
|
||||||
InvalidateRect(window, nullptr, true);
|
InvalidateRect(window, nullptr, true);
|
||||||
if (!m_host->InMoveSize())
|
if (!m_host->InMoveSize())
|
||||||
|
|||||||
Reference in New Issue
Block a user