[Launcher][WindowWalker]Show all open windows with action keyword (#23307)

This commit is contained in:
Davide Giacometti
2023-01-26 13:33:12 +01:00
committed by GitHub
parent 67ae9b0376
commit 1f307ba2f0
2 changed files with 40 additions and 15 deletions

View File

@@ -80,6 +80,18 @@ namespace Microsoft.Plugin.WindowWalker.Components
CalculateScore();
}
/// <summary>
/// Initializes a new instance of the <see cref="SearchResult"/> class.
/// </summary>
internal SearchResult(Window window)
{
Result = window;
SearchMatchesInTitle = new List<int>();
SearchMatchesInProcessName = new List<int>();
SearchResultMatchType = SearchType.Empty;
CalculateScore();
}
/// <summary>
/// Calculates the score for how closely this window matches the search string
/// </summary>