Refactoring for PR #499, part 2

This commit is contained in:
bao-qian
2016-02-26 12:05:32 +00:00
parent e6df19efbc
commit d5ab4093a9
6 changed files with 19 additions and 31 deletions

View File

@@ -16,7 +16,6 @@ using KeyEventArgs = System.Windows.Input.KeyEventArgs;
using MessageBox = System.Windows.MessageBox;
using Wox.ViewModel;
using Wox.Plugin;
using Wox.Extensions;
namespace Wox
{
@@ -77,7 +76,7 @@ namespace Wox
}
else if(eve.PropertyName == "IsVisible")
{
if (vm.WindowVisibility.IsVisible())
if (vm.MainWindowVisibility.IsVisible())
{
tbQuery.Focus();
}