Sort room list on setting change

image-modal-download
Emi Simpson 5 years ago
parent 2320bfea26
commit abac4c8d34
No known key found for this signature in database
GPG Key ID: 68FAB2E2E6DFC98B
  1. 4
      src/RoomList.cpp
  2. 7
      src/UserSettingsPage.h

@ -65,6 +65,10 @@ RoomList::RoomList(QSharedPointer<UserSettings> userSettings, QWidget *parent)
topLayout_->addWidget(scrollArea_);
connect(this, &RoomList::updateRoomAvatarCb, this, &RoomList::updateRoomAvatar);
connect(userSettings.get(),
&UserSettings::roomSortingChanged,
this,
&RoomList::sortRoomsByLastMessage);
}
void

@ -87,7 +87,11 @@ public:
save();
}
void setIgnoreMinorEvents(bool state) { ignoreMinorEvents_ = state; }
void setIgnoreMinorEvents(bool state)
{
ignoreMinorEvents_ = state;
emit roomSortingChanged();
}
void setButtonsInTimeline(bool state)
{
@ -124,6 +128,7 @@ public:
signals:
void groupViewStateChanged(bool state);
void roomSortingChanged();
private:
// Default to system theme if QT_QPA_PLATFORMTHEME var is set.

Loading…
Cancel
Save