From b2e3bd177826ffe9f9196945d6aee2bd153b75d8 Mon Sep 17 00:00:00 2001 From: haven1433 Date: Fri, 30 Jun 2023 08:17:53 -0500 Subject: [PATCH] skip hover tips if map editor isn't complete yet --- src/HexManiac.Core/ViewModels/GotoControlViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HexManiac.Core/ViewModels/GotoControlViewModel.cs b/src/HexManiac.Core/ViewModels/GotoControlViewModel.cs index 1a5e130c..1ab62a45 100644 --- a/src/HexManiac.Core/ViewModels/GotoControlViewModel.cs +++ b/src/HexManiac.Core/ViewModels/GotoControlViewModel.cs @@ -487,7 +487,7 @@ public void UpdateHoverTip(IEditableViewPort viewPort, string fullName) { return; } } - } else if (matchingMaps.Count == 1) { + } else if (matchingMaps.Count == 1 && viewPort.MapEditor != null) { IsGoto = true; var info = matchingMaps[0]; var hoverContent = viewPort.MapEditor.GetMapPreview(info.Group, info.Map, null);