撤销之前关于列表为空时不呼出侧边栏的改动,因为搜索列表也可能为空,导致无法呼出侧边栏,就无法取消搜索 #90

Merged
sin365 merged 1 commits from Alienjack/AxibugEmuOnline:master into master 2025-01-25 09:59:15 +08:00

View File

@ -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)
{