1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

perf(widget): don't save on setExpanded if categorywidget is unchanged

Fix #4932
This commit is contained in:
Anthony Bilinski 2018-01-27 20:00:43 -08:00
parent 66ee539d4a
commit b9845e1d23
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -81,6 +81,9 @@ bool CategoryWidget::isExpanded() const
void CategoryWidget::setExpanded(bool isExpanded, bool save)
{
if (expanded == isExpanded) {
return;
}
expanded = isExpanded;
setMouseTracking(true);
listWidget->setVisible(isExpanded);