Fix community sidebar toggle
This commit is contained in:
parent
d2ba0b6603
commit
683a24d2aa
@ -23,6 +23,8 @@ Rectangle {
|
||||
AdaptiveLayoutElement {
|
||||
id: communityListC
|
||||
|
||||
visible: Settings.groupView
|
||||
|
||||
minimumWidth: communitiesList.avatarSize * 4 + Nheko.paddingMedium * 2
|
||||
collapsedWidth: communitiesList.avatarSize + 2 * Nheko.paddingMedium
|
||||
preferredWidth: Settings.communityListWidth >= minimumWidth ? Settings.communityListWidth : collapsedWidth
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user