mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Fix the selective sync notification folder list being cropped
The maximumHeight would stay at the last animated value. Issue #5492
This commit is contained in:
parent
41ed603abf
commit
90cce0ab56
1 changed files with 6 additions and 3 deletions
|
@ -804,9 +804,12 @@ void AccountSettings::refreshSelectiveSyncStatus()
|
|||
auto anim = new QPropertyAnimation(ui->selectiveSyncStatus, "maximumHeight", ui->selectiveSyncStatus);
|
||||
anim->setEndValue(shouldBeVisible ? hint.height() : 0);
|
||||
anim->start(QAbstractAnimation::DeleteWhenStopped);
|
||||
if (!shouldBeVisible) {
|
||||
connect(anim, SIGNAL(finished()), ui->selectiveSyncStatus, SLOT(hide()));
|
||||
}
|
||||
connect(anim, &QPropertyAnimation::finished, [this, shouldBeVisible]() {
|
||||
ui->selectiveSyncStatus->setMaximumHeight(QWIDGETSIZE_MAX);
|
||||
if (!shouldBeVisible) {
|
||||
ui->selectiveSyncStatus->hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue