Skip to content

Commit

Permalink
skip hover tips if map editor isn't complete yet
Browse files Browse the repository at this point in the history
  • Loading branch information
haven1433 committed Jun 30, 2023
1 parent 18d7bac commit b2e3bd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HexManiac.Core/ViewModels/GotoControlViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b2e3bd1

Please # to comment.