This commit is contained in:
bao-qian 2016-03-26 03:15:28 +00:00
commit abc335143b

View File

@ -130,16 +130,15 @@ namespace Wox.ViewModel
_contextMenuVisibility = value;
OnPropertyChanged();
_ignoreTextChange = true;
if (!value.IsVisible())
{
_ignoreTextChange = true;
QueryText = _queryTextBeforeLoadContextMenu;
ResultListBoxVisibility = Visibility.Visible;
OnCursorMovedToEnd();
}
else
{
_ignoreTextChange = true;
_queryTextBeforeLoadContextMenu = QueryText;
QueryText = "";
ResultListBoxVisibility = Visibility.Collapsed;