mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 03:36:44 +02:00
updates MainWindow visibility bindings to use System.Windows.Visibility instead of bool
This commit is contained in:
@@ -16,6 +16,7 @@ using KeyEventArgs = System.Windows.Input.KeyEventArgs;
|
||||
using MessageBox = System.Windows.MessageBox;
|
||||
using Wox.ViewModel;
|
||||
using Wox.Plugin;
|
||||
using Wox.Extensions;
|
||||
|
||||
namespace Wox
|
||||
{
|
||||
@@ -76,7 +77,7 @@ namespace Wox
|
||||
}
|
||||
else if(eve.PropertyName == "IsVisible")
|
||||
{
|
||||
if (vm.IsVisible)
|
||||
if (vm.WindowVisibility.IsVisible())
|
||||
{
|
||||
this.tbQuery.Focus();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user