diff --git a/Assembly.version b/Assembly.version index 2bd9b67..44c2825 100644 --- a/Assembly.version +++ b/Assembly.version @@ -2,6 +2,6 @@ 1 2 - 4 + 5 \ No newline at end of file diff --git a/TweaksAndThings/Patches/ContextMenu_Show_Patch.cs b/TweaksAndThings/Patches/ContextMenu_Show_Patch.cs index 84ba16a..94f4406 100644 --- a/TweaksAndThings/Patches/ContextMenu_Show_Patch.cs +++ b/TweaksAndThings/Patches/ContextMenu_Show_Patch.cs @@ -27,6 +27,7 @@ internal class ContextMenu_Show_Patch return true; } __instance.CancelHideCoroutine(); + if (__instance.contentRectTransform.childCount >= 1) __instance.contentRectTransform.GetChild(0).DestroyAllChildren(); //YOINK DEM CIRCLES! __instance.SetupTemplate(rootCanvas); __instance.centerLabel.text = centerText; Canvas componentInParent = ((Component)__instance.contentRectTransform).GetComponentInParent();