From 7328aa7df5ad162079f1cf8e5d225c0998ca5673 Mon Sep 17 00:00:00 2001 From: Arjun Balgovind <32061677+arjunbalgovind@users.noreply.github.com> Date: Mon, 14 Sep 2020 13:10:56 -0700 Subject: [PATCH] Fixed Visibility property changed invoked on clicking away from PT Run (#6588) --- src/modules/launcher/PowerLauncher/MainWindow.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs index e8afdeb7ce..ba18902ed6 100644 --- a/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs +++ b/src/modules/launcher/PowerLauncher/MainWindow.xaml.cs @@ -119,10 +119,10 @@ namespace PowerLauncher { if (e.PropertyName == nameof(MainViewModel.MainWindowVisibility)) { - if (Visibility == System.Windows.Visibility.Visible) + if (Visibility == System.Windows.Visibility.Visible && _viewModel.MainWindowVisibility != Visibility.Hidden) { // Not called on first launch - // Additionally called when deactivated by clicking on screen + // Called when window is made visible by hotkey. Not called when the window is deactivated by clicking away UpdatePosition(); BringProcessToForeground();