mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-17 22:16:15 -05:00
Skip collapse animation if section is already in the desired state
This commit is contained in:
@@ -105,6 +105,9 @@ void Section::AddHeaderWidget(QWidget *w)
|
||||
|
||||
void Section::SetCollapsed(bool collapsed)
|
||||
{
|
||||
if (_collapsed == collapsed) {
|
||||
return;
|
||||
}
|
||||
Collapse(collapsed);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user