mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Fix visibility of spinner
This commit is contained in:
parent
b6d4e6b20a
commit
e91b3067a1
1 changed files with 2 additions and 5 deletions
|
@ -114,12 +114,9 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
|
|
||||||
footer: Spinner {
|
footer: Spinner {
|
||||||
// This is not a wonderful solution, but it is the best way to calculate whether
|
|
||||||
// all users are loaded while keeping canFetchMore() const
|
|
||||||
|
|
||||||
// TODO: just toggling the visiblity leaves some large empty space at the bottom
|
|
||||||
// of the list. This should be fixed.
|
|
||||||
visible: members.numUsersLoaded < members.memberCount
|
visible: members.numUsersLoaded < members.memberCount
|
||||||
|
// use the default height if it's visible, otherwise no height at all
|
||||||
|
height: visible ? undefined : 0
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue