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:
parent
66ee539d4a
commit
b9845e1d23
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user