Skip to content

Commit

Permalink
id, not name
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Jan 17, 2025
1 parent 0863030 commit ebe2028
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public InterfaceDescriptor(List<WindowDescriptor> windowDescriptors, List<MacroS

public ElementDescriptor? GetElementDescriptor(string name) {
return WindowDescriptors.Concat<ElementDescriptor>(MacroSetDescriptors)
.Concat(MenuDescriptors).FirstOrDefault(descriptor => descriptor.Name.Value == name);
.Concat(MenuDescriptors).FirstOrDefault(descriptor => descriptor.Id.Value == name);
}
}

Expand Down

0 comments on commit ebe2028

Please sign in to comment.