mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
make lint
This commit is contained in:
parent
dcdf00dcc5
commit
a23c586cde
2 changed files with 5 additions and 7 deletions
|
@ -812,9 +812,8 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
||||||
if (JdenticonProvider::isAvailable()) {
|
if (JdenticonProvider::isAvailable()) {
|
||||||
useIdenticon_ = new Toggle{this};
|
useIdenticon_ = new Toggle{this};
|
||||||
useIdenticon_->setChecked(settings_->useIdenticon());
|
useIdenticon_->setChecked(settings_->useIdenticon());
|
||||||
}
|
} else
|
||||||
else
|
useIdenticon_ = nullptr;
|
||||||
useIdenticon_ = nullptr;
|
|
||||||
|
|
||||||
if (!settings_->tray()) {
|
if (!settings_->tray()) {
|
||||||
startInTrayToggle_->setState(false);
|
startInTrayToggle_->setState(false);
|
||||||
|
|
|
@ -818,10 +818,9 @@ TimelineModel::syncState(const mtx::responses::State &s)
|
||||||
emit roomNameChanged();
|
emit roomNameChanged();
|
||||||
emit roomMemberCountChanged();
|
emit roomMemberCountChanged();
|
||||||
|
|
||||||
if (roomMemberCount() <= 2)
|
if (roomMemberCount() <= 2) {
|
||||||
{
|
emit isDirectChanged();
|
||||||
emit isDirectChanged();
|
emit directChatAvatarMxidChanged();
|
||||||
emit directChatAvatarMxidChanged();
|
|
||||||
}
|
}
|
||||||
} else if (std::holds_alternative<StateEvent<state::Encryption>>(e)) {
|
} else if (std::holds_alternative<StateEvent<state::Encryption>>(e)) {
|
||||||
this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());
|
this->isEncrypted_ = cache::isRoomEncrypted(room_id_.toStdString());
|
||||||
|
|
Loading…
Reference in a new issue