Skip to content

Commit

Permalink
Fix issue #39 : AltimeterHorizontalPosition patch causes state incons…
Browse files Browse the repository at this point in the history
…istencies with vessel filters
  • Loading branch information
gotmachine committed Jan 30, 2023
1 parent 58de235 commit 651a01a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions KSPCommunityFixes/QoL/AltimeterHorizontalPosition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,12 @@ static void MapView_enterMapView_Prefix()
if (trackingFiltersHoverArea != null)
{
trackingFiltersHoverArea.SetActive(true);

// Fix issue #39
// updateButtonsToFilter is checking for the isActiveAndEnabled state of button GO before setting state.
// Since we disabled the containing GO when this was called in MapViewFiltering.Init(), the buttons state
// will be incorrect initially, so update them manually.
MapViewFiltering.Instance.updateButtonsToFilter(MapViewFiltering.vesselTypeFilter);
}
}

Expand Down

0 comments on commit 651a01a

Please sign in to comment.