From cefa488a92ace5b3098711d3af311b17676299df Mon Sep 17 00:00:00 2001 From: Michal Pikulski Date: Mon, 10 Nov 2025 11:55:55 +0100 Subject: [PATCH] Update issues with card appearing twice after reopening page --- Assets/Scripts/UI/CardSystem/AlbumViewPage.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Assets/Scripts/UI/CardSystem/AlbumViewPage.cs b/Assets/Scripts/UI/CardSystem/AlbumViewPage.cs index caada162..e5a73580 100644 --- a/Assets/Scripts/UI/CardSystem/AlbumViewPage.cs +++ b/Assets/Scripts/UI/CardSystem/AlbumViewPage.cs @@ -231,6 +231,9 @@ namespace UI.CardSystem CardSystemManager.Instance.OnPendingCardAdded -= OnPendingCardAdded; } + // Clean up active pending cards to prevent duplicates on next opening + CleanupActiveCards(); + // Don't restore input mode here - only restore when actually exiting (in OnExitButtonClicked) base.TransitionOut(); }