From 36f0822244b0df1f14acc6d213c2c985b34afe68 Mon Sep 17 00:00:00 2001 From: "ALIENJACK\\alien" Date: Fri, 24 Jan 2025 16:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E4=B9=8B=E5=89=8D=E5=85=B3?= =?UTF-8?q?=E4=BA=8E=E5=88=97=E8=A1=A8=E4=B8=BA=E7=A9=BA=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=91=BC=E5=87=BA=E4=BE=A7=E8=BE=B9=E6=A0=8F=E7=9A=84=E6=94=B9?= =?UTF-8?q?=E5=8A=A8,=E5=9B=A0=E4=B8=BA=E6=90=9C=E7=B4=A2=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E4=B9=9F=E5=8F=AF=E8=83=BD=E4=B8=BA=E7=A9=BA,?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E5=91=BC=E5=87=BA=E4=BE=A7?= =?UTF-8?q?=E8=BE=B9=E6=A0=8F,=E5=B0=B1=E6=97=A0=E6=B3=95=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E6=90=9C=E7=B4=A2=20=E7=8E=B0=E5=9C=A8=E4=BF=9D?= =?UTF-8?q?=E8=AF=81=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=91=BC=E5=87=BA=E6=97=B6?= =?UTF-8?q?,=E5=88=A4=E6=96=AD=E5=BD=93=E5=89=8D=E9=80=89=E4=B8=ADrom?= =?UTF-8?q?=E6=98=AF=E5=90=A6=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Script/AppMain/UI/GamesUI/RomListMenuItem.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomListMenuItem.cs b/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomListMenuItem.cs index 23317935..6a7338d3 100644 --- a/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomListMenuItem.cs +++ b/AxibugEmuOnline.Client/Assets/Script/AppMain/UI/GamesUI/RomListMenuItem.cs @@ -60,9 +60,6 @@ namespace AxibugEmuOnline.Client protected override void OnCmdOptionMenu() { - var thirdMenuGroup = SubMenuItemGroup as ThirdMenuRoot; - if (thirdMenuGroup.itemGroup.DataList == null || thirdMenuGroup.itemGroup.DataList.Count == 0) return; - OverlayManager.PopSideBar(m_options); } @@ -114,9 +111,9 @@ namespace AxibugEmuOnline.Client private RomItem m_currentSelect => m_romListSub.GetItemUIByIndex(m_romListSub.SelectIndex) as RomItem; - public override bool Visible => m_currentSelect.RomInfoReady; + public override bool Visible => m_currentSelect != null && m_currentSelect.RomInfoReady; - public override string Name { get { return m_currentSelect.IsStar ? "取消收藏" : "收藏"; } } + public override string Name { get { return m_currentSelect != null && m_currentSelect.IsStar ? "取消收藏" : "收藏"; } } public OptMenu_Fav(RomListMenuItem romListUI) {