mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-13 11:09:28 +08:00
Misc
This commit is contained in:
commit
abc335143b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user