Browse Source

Fix Resource Editor not showing comments

Fixes #714
pull/716/head
Matt Ward 10 years ago
parent
commit
f1739624fe
  1. 1
      src/AddIns/DisplayBindings/ResourceEditor/Project/Src/Commands/EditCommentCommand.cs
  2. 1
      src/AddIns/DisplayBindings/ResourceEditor/Project/Src/ViewModels/ResourceItem.cs

1
src/AddIns/DisplayBindings/ResourceEditor/Project/Src/Commands/EditCommentCommand.cs

@ -34,6 +34,7 @@ namespace ResourceEditor.Commands @@ -34,6 +34,7 @@ namespace ResourceEditor.Commands
selectedItem.Comment);
if (newValue != null && newValue != selectedItem.Comment) {
selectedItem.Comment = newValue;
selectedItem.RichComment = newValue;
}
}
}

1
src/AddIns/DisplayBindings/ResourceEditor/Project/Src/ViewModels/ResourceItem.cs

@ -65,6 +65,7 @@ namespace ResourceEditor.ViewModels @@ -65,6 +65,7 @@ namespace ResourceEditor.ViewModels
this.ResourceValue = resourceValue;
this.resourceType = GetResourceTypeFromValue(resourceValue);
this.Comment = comment;
this.RichComment = comment;
}
#region INotifyPropertyChanged implementation

Loading…
Cancel
Save