Revert accidental change

This commit is contained in:
Yusyuriv 2025-03-22 15:35:34 +06:00
parent 67be335600
commit c39079badc
No known key found for this signature in database
GPG key ID: A91C52E6F73148E0

View file

@ -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