From 98d367b0732a5eaa2105f1c285ad040b9fa40a07 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期四, 13 十一月 2025 18:58:30 +0800
Subject: [PATCH] 18 子 2D卡牌客户端搭建 UI 持久化被误销毁的问题
---
Main/Manager/UIManager.cs | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Main/Manager/UIManager.cs b/Main/Manager/UIManager.cs
index eed236b..0ef9a10 100644
--- a/Main/Manager/UIManager.cs
+++ b/Main/Manager/UIManager.cs
@@ -492,7 +492,8 @@
int idleRounds = currentRound - ui.lastUsedRound;
// 濡傛灉绌洪棽鍥炲悎鏁拌秴杩囨渶澶х┖闂插洖鍚堟暟锛屾坊鍔犲埌鍏抽棴鍒楄〃
- if (idleRounds > ui.maxIdleRounds)
+ // 2025 11/13 淇 鎸佷箙鍖朥I琚攢姣佺殑闂
+ if (idleRounds > ui.maxIdleRounds && !ui.isPersistent)
{
uiToClose.Add(ui);
uiToRemove.Add(ui);
--
Gitblit v1.8.0