mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01: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);
|
||||
|
||||
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())
|
||||
|
||||
Reference in New Issue
Block a user