diff --git a/Flow.Launcher/ViewModel/MainViewModel.cs b/Flow.Launcher/ViewModel/MainViewModel.cs index 5ebed0369..59af95da5 100644 --- a/Flow.Launcher/ViewModel/MainViewModel.cs +++ b/Flow.Launcher/ViewModel/MainViewModel.cs @@ -1385,11 +1385,6 @@ namespace Flow.Launcher.ViewModel public async void Hide() { - - if (StartWithEnglishMode) - { - Win32Helper.RestorePreviousKeyboardLayout(); - } lastHistoryIndex = 1; if (ExternalPreviewVisible) @@ -1452,6 +1447,11 @@ namespace Flow.Launcher.ViewModel Win32Helper.DWMSetCloakForWindow(mainWindow, true); } + if (StartWithEnglishMode) + { + Win32Helper.RestorePreviousKeyboardLayout(); + } + await Task.Delay(50); // Update WPF properties