previous commit broke some tests. We should only use the new SelectionGoto argument if our arg is a string.
This commit is contained in:
haven1433 2025-12-12 08:56:38 -06:00
parent 0c770d95f7
commit 19df9c0e24

View File

@ -313,7 +313,8 @@ namespace HavenSoft.HexManiac.Core.ViewModels {
tools?.LogTool.LogMessages.Add("Attempting to Goto Address: " + address.ToString());
}
selection.Goto.Execute(new SelectionGotoArgs(arg.ToString(), this));
if (arg is string stringArg) selection.Goto.Execute(new SelectionGotoArgs(stringArg, this));
else selection.Goto.Execute(arg);
args = new TabChangeRequestedEventArgs(this);
RequestTabChange?.Invoke(mapper, args);