updates MainWindow visibility bindings to use System.Windows.Visibility instead of bool

This commit is contained in:
rmterra
2016-02-21 18:27:05 -03:00
parent 5919dd998b
commit cb952b0d3a
4 changed files with 90 additions and 86 deletions

View File

@@ -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();
}