From a58b8473005db01c176f9c9e63e63569795b37ed Mon Sep 17 00:00:00 2001 From: Lncvrt Date: Mon, 19 Jan 2026 20:15:46 -0700 Subject: [PATCH] Fix back button closing entire profile page if popup open --- Assets/Scripts/ProfileMenu.cs | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/Assets/Scripts/ProfileMenu.cs b/Assets/Scripts/ProfileMenu.cs index 1312c10..6642877 100644 --- a/Assets/Scripts/ProfileMenu.cs +++ b/Assets/Scripts/ProfileMenu.cs @@ -1,8 +1,6 @@ -using System; using System.Linq; using System.Numerics; -using System.Text; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using TMPro; @@ -38,6 +36,8 @@ public class ProfileMenu : MonoBehaviour [SerializeField] private bool canVote = true; + private GameObject popupObject; + void Awake() { @@ -282,6 +282,7 @@ public class ProfileMenu : MonoBehaviour void VotePost(BigInteger postId, TMP_Text entryLikesCount, TMP_Text entryLikesTexture) { var popup = Instantiate(voteOverlay, voteOverlay.transform.parent); + popupObject = popup; popup.SetActive(true); var exitButton = popup.transform.GetChild(0).GetChild(0).GetComponent