mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Fix the loading spinner setup
This fixes binding loops and gives it a (in my opinion) sane size.
This commit is contained in:
parent
38c6aa65fa
commit
d33538316c
1 changed files with 14 additions and 4 deletions
|
@ -118,11 +118,21 @@ ApplicationWindow {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
footer: Spinner {
|
footer: Item {
|
||||||
visible: members.numUsersLoaded < members.memberCount && members.loadingMoreMembers
|
width: parent.width
|
||||||
|
visible: (members.numUsersLoaded < members.memberCount) && members.loadingMoreMembers
|
||||||
|
|
||||||
// use the default height if it's visible, otherwise no height at all
|
// use the default height if it's visible, otherwise no height at all
|
||||||
height: visible ? undefined : 0
|
height: membersLoadingSpinner.height
|
||||||
|
anchors.margins: Nheko.paddingMedium
|
||||||
|
|
||||||
|
Spinner {
|
||||||
|
id: membersLoadingSpinner
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
height: visible ? 35 : 0
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue