Skip to content

Commit

Permalink
fix: prevent new tab creation when a tab group is collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Feb 26, 2024
1 parent cc113b2 commit 3b1a555
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/IAccessibleUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,12 @@ bool IsOnlyOneTab(NodePtr top)
{
tab_count++;
}
if ((GetAccessibleRole(child) == ROLE_SYSTEM_PAGETABLIST)
&& (GetAccessibleState(child) & STATE_SYSTEM_COLLAPSED))
// 判断是否存在折叠的标签组
{
tab_count++;
}
return false;
});
}
Expand Down

0 comments on commit 3b1a555

Please sign in to comment.