Skip to content

Commit e57816d

Browse files
committed
Improve quick switch dispose
1 parent 5b5cac6 commit e57816d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Flow.Launcher.Infrastructure/QuickSwitch/QuickSwitch.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,9 @@ private static unsafe void EnumerateShellWindows(Action<object> action)
516516

517517
public static void Dispose()
518518
{
519+
// Reset initialize flag
520+
_isInitialized = false;
521+
519522
// Dispose handle
520523
if (_foregroundChangeHook != null)
521524
{
@@ -544,6 +547,13 @@ public static void Dispose()
544547
Marshal.ReleaseComObject(_lastExplorerView);
545548
_lastExplorerView = null;
546549
}
550+
551+
// Stop drag move timer
552+
if (_dragMoveTimer != null)
553+
{
554+
_dragMoveTimer.Stop();
555+
_dragMoveTimer = null;
556+
}
547557
}
548558
}
549559
}

0 commit comments

Comments
 (0)