summary refs log tree commit diff
diff options
context:
space:
mode:
authorAidan Hahn <aidan@aidanis.online>2019-09-01 16:10:11 -0700
committerAidan Hahn <aidan@aidanis.online>2019-09-01 16:10:11 -0700
commit1e6fc6e3428b3250897cb8cb20e4e722ac8a4a63 (patch)
treef1c2b882c3083aba97eae75a23d14b9de878cc62
parentRefactored Avatar and RoomInfoListItem to access rounding settings in place (diff)
downloadnheko-1e6fc6e3428b3250897cb8cb20e4e722ac8a4a63.tar.xz
fixed typoes in code, added layout metadata to new settings toggle.
-rw-r--r--src/UserSettingsPage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 76f3a81d..a5c22fe7 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -133,6 +133,7 @@ UserSettings::save()
         settings.setValue("emoji_font_family", emojiFont_);
 
         settings.endGroup();
+
 }
 
 HorizontalLine::HorizontalLine(QWidget *parent)
@@ -204,7 +205,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
         avatarCircles_ = new Toggle(this);
 
         avatarViewLayout->addWidget(avatarViewLabel);
-        avatarViewLayout->addWidget(avatarCircles_);
+        avatarViewLayout->addWidget(avatarCircles_, 0, Qt::AlignRight);
 
         auto typingLayout = new QHBoxLayout;
         typingLayout->setContentsMargins(0, OptionMargin, 0, OptionMargin);
@@ -464,7 +465,7 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
                 settings_->setGroupView(!isDisabled);
         });
 
-        connect(groupViewToggle_, &Toggle::toggled, this, [this](bool isDisabled) {
+        connect(avatarCircles_, &Toggle::toggled, this, [this](bool isDisabled) {
                 settings_->setAvatarCircles(!isDisabled);
         });