From 20ba62f7631eb4094ecf5de2cc6b0c6fe2cfbf7d Mon Sep 17 00:00:00 2001 From: haven1433 Date: Thu, 30 May 2024 20:02:31 -0500 Subject: [PATCH] allow opening constants from map editor --- src/HexManiac.Core/ViewModels/ViewPort.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/HexManiac.Core/ViewModels/ViewPort.cs b/src/HexManiac.Core/ViewModels/ViewPort.cs index c661c099..2109f5bc 100644 --- a/src/HexManiac.Core/ViewModels/ViewPort.cs +++ b/src/HexManiac.Core/ViewModels/ViewPort.cs @@ -229,6 +229,8 @@ namespace HavenSoft.HexManiac.Core.ViewModels { var words = Model.GetMatchedWords(str).ToList(); if (words.Count == 1) { selection.Goto.Execute(words[0]); + args = new TabChangeRequestedEventArgs(this); + RequestTabChange?.Invoke(mapper, args); return; } else if (words.Count > 1) { OpenSearchResultsTab(str, words.Select(word => (word, word)).ToList());