Skip to content

Commit

Permalink
fix #1940
Browse files Browse the repository at this point in the history
Fix DecompiledEditor and DisassemblyEditor erroneously
reporting that they have changed when loading a child code entry,
resulting in an error when trying to save.
Also minor grammar fix.
  • Loading branch information
zivmaor committed Oct 6, 2024
1 parent caf0412 commit 216d7b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions UndertaleModTool/Editors/UndertaleCodeEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ private void DisassembleCode(UndertaleCode code, bool first)
if (code.ParentEntry != null)
{
DisassemblyEditor.IsReadOnly = true;
text = "; This code entry is a reference to an anonymous function within " + code.ParentEntry.Name.Content + ", view it there";
text = "; This code entry is a reference to an anonymous function within " + code.ParentEntry.Name.Content + ", view it there.";
DisassemblyChanged = false;
}
else
{
Expand Down Expand Up @@ -645,7 +646,8 @@ private async Task DecompileCode(UndertaleCode code, bool first, LoaderDialog ex

if (code.ParentEntry != null)
{
DecompiledEditor.Text = "// This code entry is a reference to an anonymous function within " + code.ParentEntry.Name.Content + ", view it there";
DecompiledEditor.Text = "// This code entry is a reference to an anonymous function within " + code.ParentEntry.Name.Content + ", view it there.";
DecompiledChanged = false;
CurrentDecompiled = code;
existingDialog?.TryClose();
}
Expand Down

0 comments on commit 216d7b5

Please sign in to comment.