Skip to content

Commit

Permalink
Fix glitches on clicking toolbar button while auto popup still open
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Mar 2, 2021
1 parent bb35211 commit 3dccd1e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions GameData/KerbalChangelog/KerbalChangelog-Changelog.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ KERBALCHANGELOG
change = Combined view of all mods' unseen changes
type = Add
}
CHANGE
{
change = Fix glitches on clicking toolbar button while auto popup still open
type = Fix
}
}
VERSION
{
Expand Down
3 changes: 3 additions & 0 deletions Source/ChangelogAddonSpaceCenter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ private void Start()

// This event fires when KSP wants mods to remove their toolbar buttons
GameEvents.onGUIApplicationLauncherDestroyed.Add(RemoveLauncher);

// Try to find the popup if it's already open
controller = FindObjectsOfType<ChangelogController>().FirstOrDefault();
}

private void OnDisable()
Expand Down

0 comments on commit 3dccd1e

Please sign in to comment.