mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Remove ResultOpened related events
Since we are going to refactor plugin-UI interaction mechanism in the near future, we just keep current implementation as simple as possible.
This commit is contained in:
@@ -417,20 +417,6 @@ namespace Wox.ViewModel
|
||||
{
|
||||
this._searchResultPanel = new ResultPanelViewModel();
|
||||
this.IsSearchResultPanelVisible = false;
|
||||
this._searchResultPanel.ResultOpenedInPanel += (o, e) =>
|
||||
{
|
||||
if (e.HideWindow)
|
||||
{
|
||||
this.IsVisible = false;
|
||||
}
|
||||
UserSelectedRecordStorage.Instance.Add(e.Result.RawResult);
|
||||
QueryHistoryStorage.Instance.Add(this.QueryText);
|
||||
};
|
||||
|
||||
this._searchResultPanel.ResultActionPanelOpenedInPanel += (o, e) =>
|
||||
{
|
||||
this.ShowActionPanel(e.Result.RawResult);
|
||||
};
|
||||
}
|
||||
|
||||
private void ShowActionPanel(Result result)
|
||||
@@ -501,13 +487,6 @@ namespace Wox.ViewModel
|
||||
{
|
||||
this._actionPanel = new ResultPanelViewModel();
|
||||
this.IsActionPanelVisible = false;
|
||||
this._actionPanel.ResultOpenedInPanel += (o, e) =>
|
||||
{
|
||||
if (e.HideWindow)
|
||||
{
|
||||
this.IsVisible = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void HandleQueryTextUpdated()
|
||||
|
||||
Reference in New Issue
Block a user