Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion OpenDreamClient/Interface/InterfaceMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public override void AddChild(ElementDescriptor descriptor) {
!MenuElementsByName.TryGetValue(elementDescriptor.Category.Value, out parentMenu)) {
//if category is set but the parent element doesn't exist, create it
var parentMenuDescriptor = new MenuElementDescriptor {
Id = elementDescriptor.Category
Id = elementDescriptor.Category,
Name = elementDescriptor.Category
};

parentMenu = new(parentMenuDescriptor, this);
Expand Down
5 changes: 4 additions & 1 deletion OpenDreamShared/Interface/Descriptors/InterfaceDescriptor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ public DMFPropertyString Id {
init => _id = value;
}

public DMFPropertyString Name => new(_name.Value);
public DMFPropertyString Name {
get => new(_name.Value);
init => _name = value;
}

public DMFPropertyString Type {
get => _type;
Expand Down
Loading