Fix InvalidOperationException

This commit is contained in:
Jack251970 2025-03-28 14:31:46 +08:00
parent 589fefce3c
commit 40d2d58406

View file

@ -296,7 +296,8 @@ namespace Flow.Launcher
Notification.Uninstall();
// After plugins are all disposed, we can close the main window
_canClose = true;
Close();
// Use this instead of Close() to avoid InvalidOperationException when calling Close() in OnClosing event
Application.Current.Shutdown();
}
}