Skip to content

Commit a52b3a5

Browse files
committed
Destroy the UI processes upon entering the SpaceCentre. This will mitigate issues that can arrise that may cause the 'Progress' window to remain visible indefinitely.
1 parent 702a8ae commit a52b3a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

KSP-AVC/Starter.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ protected void Start()
9898

9999
protected void Update()
100100
{
101+
if (HighLogic.LoadedScene == GameScenes.SPACECENTER)
102+
{
103+
Destroy(gameObject);
104+
}
105+
101106
try
102107
{
103108
if (this.firstRunGui != null)

0 commit comments

Comments
 (0)