mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-06-01 04:53:29 -05:00
update text tool after undo
This commit is contained in:
parent
24490c43e9
commit
bec3d66159
|
|
@ -126,6 +126,7 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Tools {
|
|||
}
|
||||
|
||||
public void RefreshContent() {
|
||||
StringTool.DataForCurrentRunChanged();
|
||||
TableTool.DataForCurrentRunChanged();
|
||||
SpriteTool.DataForCurrentRunChanged();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -365,5 +365,15 @@ namespace HavenSoft.HexManiac.Tests {
|
|||
|
||||
Assert.True(watcher.LastCanExecute);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void ChangeTextWithTextTool_Undo_TextToolUpdates() {
|
||||
ViewPort.Edit("FF @00 ^text\"\" Test\" @00 ");
|
||||
ViewPort.Tools.StringTool.Content = "Blah";
|
||||
|
||||
ViewPort.Undo.Execute();
|
||||
|
||||
Assert.Equal("Test", ViewPort.Tools.StringTool.Content);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user