mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-24 14:22:40 -06:00
TabBar: fixed group issue
git-svn-id: svn://ultimatepp.org/upp/trunk@10033 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
220f751a03
commit
becdcd01b4
1 changed files with 5 additions and 1 deletions
|
|
@ -633,7 +633,7 @@ void TabBar::DoStacking()
|
|||
Repos();
|
||||
}
|
||||
|
||||
void TabBar::DoUnstacking()
|
||||
void TabBar::DoUnstacking()
|
||||
{
|
||||
stackcount = 0;
|
||||
for (int i = 0; i < tabs.GetCount(); i++)
|
||||
|
|
@ -670,6 +670,10 @@ void TabBar::SortStack(int stackix, int head, int tail)
|
|||
|
||||
void TabBar::MakeGroups()
|
||||
{
|
||||
for(const auto& tab : tabs)
|
||||
if(FindGroup(tab.group) < 0)
|
||||
NewGroup(tab.group);
|
||||
|
||||
groups[0].count = tabs.GetCount();
|
||||
groups[0].first = 0;
|
||||
groups[0].last = tabs.GetCount() - 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue