From df4f94fdee540bdacf6afd27525258222a431f71 Mon Sep 17 00:00:00 2001 From: DB p Date: Mon, 22 Nov 2021 17:18:48 +0900 Subject: [PATCH] Adjust Delay for ondeactivated --- Flow.Launcher/MainWindow.xaml.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index b1a23a79c..1736b3f25 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -355,11 +355,9 @@ namespace Flow.Launcher private async void OnDeactivated(object sender, EventArgs e) { - // need time to initialize the main query window animation - if (_settings.UseAnimation) - await Task.Delay(50); if (_settings.HideWhenDeactive) { + await Task.Delay(50); _viewModel.Hide(); } }