ResourceTree: Add name/path filter

This commit is contained in:
Exter-N 2024-05-31 01:05:05 +02:00
parent f4bdbcac53
commit c7046ec006
3 changed files with 60 additions and 19 deletions

View file

@ -10,7 +10,6 @@ public class ResourceNode : ICloneable
public string? Name;
public string? FallbackName;
public ChangedItemIcon Icon;
public ChangedItemIcon DescendentIcons;
public readonly ResourceType Type;
public readonly nint ObjectAddress;
public readonly nint ResourceHandle;
@ -53,7 +52,6 @@ public class ResourceNode : ICloneable
Name = other.Name;
FallbackName = other.FallbackName;
Icon = other.Icon;
DescendentIcons = other.DescendentIcons;
Type = other.Type;
ObjectAddress = other.ObjectAddress;
ResourceHandle = other.ResourceHandle;

View file

@ -116,9 +116,6 @@ public class ResourceTreeFactory(
{
if (node.Name == parent?.Name)
node.Name = null;
if (parent != null)
parent.DescendentIcons |= node.Icon | node.DescendentIcons;
});
}