allow opening constants from map editor

This commit is contained in:
haven1433
2024-05-30 20:02:31 -05:00
parent b16d238c8a
commit 20ba62f763

View File

@@ -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());