mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +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 {
|
AdaptiveLayoutElement {
|
||||||
id: communityListC
|
id: communityListC
|
||||||
|
|
||||||
|
visible: Settings.groupView
|
||||||
|
|
||||||
minimumWidth: communitiesList.avatarSize * 4 + Nheko.paddingMedium * 2
|
minimumWidth: communitiesList.avatarSize * 4 + Nheko.paddingMedium * 2
|
||||||
collapsedWidth: communitiesList.avatarSize + 2 * Nheko.paddingMedium
|
collapsedWidth: communitiesList.avatarSize + 2 * Nheko.paddingMedium
|
||||||
preferredWidth: Settings.communityListWidth >= minimumWidth ? Settings.communityListWidth : collapsedWidth
|
preferredWidth: Settings.communityListWidth >= minimumWidth ? Settings.communityListWidth : collapsedWidth
|
||||||
|
|
|
@ -179,10 +179,11 @@ UserSettings::setMobileMode(bool state)
|
||||||
void
|
void
|
||||||
UserSettings::setGroupView(bool state)
|
UserSettings::setGroupView(bool state)
|
||||||
{
|
{
|
||||||
if (groupView_ != state)
|
if (groupView_ == state)
|
||||||
emit groupViewStateChanged(state);
|
return;
|
||||||
|
|
||||||
groupView_ = state;
|
groupView_ = state;
|
||||||
|
emit groupViewStateChanged(state);
|
||||||
save();
|
save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue