From 7b4867d2eb2d744dd1786e968fe32f7373723860 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Tue, 23 Nov 2021 19:46:34 +1100 Subject: [PATCH] prevent re-triggering on deactivated case where without it the toggle hidden is fired and then ondeactivated is also fired but with delay, and hides the window again --- Flow.Launcher/MainWindow.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flow.Launcher/MainWindow.xaml.cs b/Flow.Launcher/MainWindow.xaml.cs index 1736b3f25..e22be38e3 100644 --- a/Flow.Launcher/MainWindow.xaml.cs +++ b/Flow.Launcher/MainWindow.xaml.cs @@ -355,7 +355,7 @@ namespace Flow.Launcher private async void OnDeactivated(object sender, EventArgs e) { - if (_settings.HideWhenDeactive) + if (_settings.HideWhenDeactive && _viewModel.MainWindowVisibility != Visibility.Collapsed) { await Task.Delay(50); _viewModel.Hide();