mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix community sidebar toggle
This commit is contained in:
parent
d2ba0b6603
commit
683a24d2aa
2 changed files with 5 additions and 2 deletions
|
@ -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 a new issue