summary refs log tree commit diff
path: root/src/UserSettingsPage.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-07-02 12:36:33 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-07-02 12:36:33 +0200
commit683a24d2aaaddbc9b8fab87a29361028949ac0ef (patch)
treed0122e6a06d09519c192f4227c8271c7265114fc /src/UserSettingsPage.cpp
parentUpdate translations (diff)
downloadnheko-683a24d2aaaddbc9b8fab87a29361028949ac0ef.tar.xz
Fix community sidebar toggle
Diffstat (limited to 'src/UserSettingsPage.cpp')
-rw-r--r--src/UserSettingsPage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 6c0d8728..740b8979 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -179,10 +179,11 @@ UserSettings::setMobileMode(bool state)
 void
 UserSettings::setGroupView(bool state)
 {
-        if (groupView_ != state)
-                emit groupViewStateChanged(state);
+        if (groupView_ == state)
+                return;
 
         groupView_ = state;
+        emit groupViewStateChanged(state);
         save();
 }