mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 13:08:48 +03:00
Disable paint updates when removing the room filter
This commit is contained in:
parent
6583686a7c
commit
35067088f9
1 changed files with 2 additions and 0 deletions
|
@ -344,12 +344,14 @@ RoomList::closeJoinRoomDialog(bool isJoining, QString roomAlias)
|
||||||
void
|
void
|
||||||
RoomList::removeFilter()
|
RoomList::removeFilter()
|
||||||
{
|
{
|
||||||
|
setUpdatesEnabled(false);
|
||||||
for (int i = 0; i < contentsLayout_->count(); i++) {
|
for (int i = 0; i < contentsLayout_->count(); i++) {
|
||||||
auto widget =
|
auto widget =
|
||||||
qobject_cast<RoomInfoListItem *>(contentsLayout_->itemAt(i)->widget());
|
qobject_cast<RoomInfoListItem *>(contentsLayout_->itemAt(i)->widget());
|
||||||
if (widget)
|
if (widget)
|
||||||
widget->show();
|
widget->show();
|
||||||
}
|
}
|
||||||
|
setUpdatesEnabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue