mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
Fixed Visibility property changed invoked on clicking away from PT Run (#6588)
This commit is contained in:
@@ -119,10 +119,10 @@ namespace PowerLauncher
|
|||||||
{
|
{
|
||||||
if (e.PropertyName == nameof(MainViewModel.MainWindowVisibility))
|
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
|
// 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();
|
UpdatePosition();
|
||||||
BringProcessToForeground();
|
BringProcessToForeground();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user