mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-05-19 02:25:04 +08:00
Update import
This commit is contained in:
+16
-9
@@ -6373,18 +6373,25 @@ GuiTabPageList
|
||||
tab->containerComposition->RemoveChild(value->boundsComposition);
|
||||
value->tab = nullptr;
|
||||
|
||||
if (items.Count() <= 1)
|
||||
if (items.Count() > 1)
|
||||
{
|
||||
if (items.Count() > index + 1)
|
||||
{
|
||||
tab->SetSelectedPage(items[index + 1]);
|
||||
}
|
||||
else if (items.Count() == index + 1)
|
||||
{
|
||||
tab->SetSelectedPage(items[index - 1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GuiTabPageList::AfterRemove(vint index, vint count)
|
||||
{
|
||||
if (items.Count() == 0)
|
||||
{
|
||||
tab->SetSelectedPage(nullptr);
|
||||
}
|
||||
else if (items.Count() > index + 1)
|
||||
{
|
||||
tab->SetSelectedPage(items[index + 1]);
|
||||
}
|
||||
else if (items.Count() == index + 1)
|
||||
{
|
||||
tab->SetSelectedPage(items[index - 1]);
|
||||
}
|
||||
}
|
||||
|
||||
GuiTabPageList::GuiTabPageList(GuiTab* _tab)
|
||||
|
||||
@@ -13598,6 +13598,7 @@ Tab Control
|
||||
bool QueryInsert(vint index, GuiTabPage* const& value)override;
|
||||
void AfterInsert(vint index, GuiTabPage* const& value)override;
|
||||
void BeforeRemove(vint index, GuiTabPage* const& value)override;
|
||||
void AfterRemove(vint index, vint count)override;
|
||||
public:
|
||||
GuiTabPageList(GuiTab* _tab);
|
||||
~GuiTabPageList();
|
||||
|
||||
Reference in New Issue
Block a user