Skip to content

Commit

Permalink
Don't destroy GUI on tooltip destroy event
Browse files Browse the repository at this point in the history
  • Loading branch information
ihsoft committed Aug 23, 2017
1 parent c85bcc0 commit 447f25c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions Source/ModuleKISInventory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,6 @@ public enum InventoryType {
GameEvents.onVesselChange.Remove(OnVesselChange);
GameEvents.onPartActionUICreate.Remove(OnPartActionUICreate);
GameEvents.onPartActionUIDismiss.Remove(OnPartActionUIDismiss);
if (HighLogic.LoadedSceneIsEditor) {
InputLockManager.RemoveControlLock("KISInventoryLock");
GameEvents.onTooltipDestroyRequested.Remove(OnTooltipDestroyRequestedEvent);
}
}

/// <summary>Overridden from PartModule.</summary>
Expand All @@ -585,10 +581,6 @@ public enum InventoryType {
}
}

if (HighLogic.LoadedSceneIsEditor) {
InputLockManager.RemoveControlLock("KISInventoryLock");
GameEvents.onTooltipDestroyRequested.Add(OnTooltipDestroyRequestedEvent);
}
guiMainWindowPos = defaultFlightPos;

Animation[] anim = part.FindModelAnimators(openAnimName);
Expand Down

0 comments on commit 447f25c

Please sign in to comment.