Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions source/WaypointManager/WaypointManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ private void LoadTextures()

private void SetupToolbar()
{
if (HighLogic.LoadedScene == GameScenes.MAINMENU)
{
return;
}

if (launcherButton == null && Config.useStockToolbar)
{
ApplicationLauncher.AppScenes visibleScenes = ApplicationLauncher.AppScenes.FLIGHT |
Expand Down Expand Up @@ -152,6 +157,11 @@ private void UnloadToolbar()
private void OnGameSceneLoad(GameScenes scene)
{
WaypointData.CacheWaypointData();
if (scene == GameScenes.MAINMENU)
{
TeardownToolbar(scene);
}

if (scene != GameScenes.FLIGHT && scene != GameScenes.TRACKSTATION)
{
showGUI = false;
Expand Down