mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-04-25 15:47:09 -05:00
bugfix
previous commit broke some tests. We should only use the new SelectionGoto argument if our arg is a string.
This commit is contained in:
parent
0c770d95f7
commit
19df9c0e24
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user