Don't disable CohtmlView, only enable it.

Fixed hitching & potential crash when opening menu after a long time of it being closed. Misread the source code when remaking the method, so I assumed the CohtmlView was disabled when closing menu.
This commit is contained in:
NotAKidoS 2023-02-12 04:51:21 -06:00
parent 10f5fa49d7
commit 7cc8dfc6e5
3 changed files with 6 additions and 6 deletions

View file

@ -124,7 +124,7 @@ internal class HarmonyPatches
if (show != ____quickMenuOpen)
{
____quickMenuOpen = show;
__instance.quickMenu.enabled = show;
__instance.quickMenu.enabled = true;
__instance.quickMenuAnimator.SetBool("Open", show);
QuickMenuHelper.Instance.enabled = show;
QuickMenuHelper.Instance.UpdateWorldAnchors(show);
@ -152,7 +152,7 @@ internal class HarmonyPatches
if (show != ____gameMenuOpen)
{
____gameMenuOpen = show;
__instance.gameMenuView.enabled = show;
__instance.gameMenuView.enabled = true;
__instance.uiMenuAnimator.SetBool("Open", show);
MainMenuHelper.Instance.enabled = show;
MainMenuHelper.Instance.UpdateWorldAnchors(show);