mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 05:06:35 -05:00
allow opening constants from map editor
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user