Skip collapse animation if section is already in the desired state

This commit is contained in:
WarmUpTill 2022-02-22 19:48:47 +01:00 committed by WarmUpTill
parent 5298b14803
commit 83df1ab658

View File

@ -105,6 +105,9 @@ void Section::AddHeaderWidget(QWidget *w)
void Section::SetCollapsed(bool collapsed)
{
if (_collapsed == collapsed) {
return;
}
Collapse(collapsed);
}