diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index ea1e92b22..a155d2e43 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1464,10 +1464,10 @@ namespace Flow.Launcher.ViewModel public void Show() { - // When application is exitting, the Application.Current will be null + // When application is exiting, the Application.Current will be null Application.Current?.Dispatcher.Invoke(() => { - // When application is exitting, the Application.Current will be null + // When application is exiting, the Application.Current will be null if (Application.Current?.MainWindow is MainWindow mainWindow) { // 📌 Remove DWM Cloak (Make the window visible normally) @@ -1539,10 +1539,10 @@ namespace Flow.Launcher.ViewModel break; } - // When application is exitting, the Application.Current will be null + // When application is exiting, the Application.Current will be null Application.Current?.Dispatcher.Invoke(() => { - // When application is exitting, the Application.Current will be null + // When application is exiting, the Application.Current will be null if (Application.Current?.MainWindow is MainWindow mainWindow) { // Set clock and search icon opacity