mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-06-14 12:51:43 -05:00
Skip collapse animation if section is already in the desired state
This commit is contained in:
parent
5298b14803
commit
83df1ab658
|
|
@ -105,6 +105,9 @@ void Section::AddHeaderWidget(QWidget *w)
|
|||
|
||||
void Section::SetCollapsed(bool collapsed)
|
||||
{
|
||||
if (_collapsed == collapsed) {
|
||||
return;
|
||||
}
|
||||
Collapse(collapsed);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user