mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
fixed typoes in code, added layout metadata to new settings toggle.
This commit is contained in:
parent
a1c2aed36a
commit
1e6fc6e342
1 changed files with 3 additions and 2 deletions
|
@ -133,6 +133,7 @@ UserSettings::save()
|
||||||
settings.setValue("emoji_font_family", emojiFont_);
|
settings.setValue("emoji_font_family", emojiFont_);
|
||||||
|
|
||||||
settings.endGroup();
|
settings.endGroup();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
HorizontalLine::HorizontalLine(QWidget *parent)
|
HorizontalLine::HorizontalLine(QWidget *parent)
|
||||||
|
@ -204,7 +205,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
||||||
avatarCircles_ = new Toggle(this);
|
avatarCircles_ = new Toggle(this);
|
||||||
|
|
||||||
avatarViewLayout->addWidget(avatarViewLabel);
|
avatarViewLayout->addWidget(avatarViewLabel);
|
||||||
avatarViewLayout->addWidget(avatarCircles_);
|
avatarViewLayout->addWidget(avatarCircles_, 0, Qt::AlignRight);
|
||||||
|
|
||||||
auto typingLayout = new QHBoxLayout;
|
auto typingLayout = new QHBoxLayout;
|
||||||
typingLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
|
typingLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
|
||||||
|
@ -464,7 +465,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
|
||||||
settings_->setGroupView(!isDisabled);
|
settings_->setGroupView(!isDisabled);
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(groupViewToggle_, &Toggle::toggled, this, [this](bool isDisabled) {
|
connect(avatarCircles_, &Toggle::toggled, this, [this](bool isDisabled) {
|
||||||
settings_->setAvatarCircles(!isDisabled);
|
settings_->setAvatarCircles(!isDisabled);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue