From c39079badc789a05bea0d23fbd37ab1c22641ecb Mon Sep 17 00:00:00 2001 From: Yusyuriv Date: Sat, 22 Mar 2025 15:35:34 +0600 Subject: [PATCH] Revert accidental change --- Flow.Launcher/ViewModel/MainViewModel.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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