mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
Adjust score weight for programs.
This commit is contained in:
@@ -70,29 +70,6 @@ namespace Wox
|
||||
return location;
|
||||
}
|
||||
|
||||
private FrameworkElement FindByName(string name, FrameworkElement root)
|
||||
{
|
||||
Stack<FrameworkElement> tree = new Stack<FrameworkElement>();
|
||||
tree.Push(root);
|
||||
|
||||
while (tree.Count > 0)
|
||||
{
|
||||
FrameworkElement current = tree.Pop();
|
||||
if (current.Name == name)
|
||||
return current;
|
||||
|
||||
int count = VisualTreeHelper.GetChildrenCount(current);
|
||||
for (int i = 0; i < count; ++i)
|
||||
{
|
||||
DependencyObject child = VisualTreeHelper.GetChild(current, i);
|
||||
if (child is FrameworkElement)
|
||||
tree.Push((FrameworkElement)child);
|
||||
}
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public void SelectNext()
|
||||
{
|
||||
int index = lbResults.SelectedIndex;
|
||||
|
||||
Reference in New Issue
Block a user