feat: hide leaderboard when no users
This commit is contained in:
@@ -79,20 +79,23 @@ Rectangle {
|
||||
}
|
||||
}
|
||||
|
||||
Label {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
|
||||
font.pixelSize: UIStyle.fontSizeL
|
||||
color: UIStyle.titletextColor
|
||||
|
||||
text: "Leaderboard"
|
||||
}
|
||||
|
||||
ColumnLayout {
|
||||
Layout.fillHeight: true
|
||||
Layout.fillWidth: true
|
||||
spacing: -1
|
||||
|
||||
visible: leaderboard.hasRow
|
||||
|
||||
Label {
|
||||
Layout.alignment: Qt.AlignHCenter
|
||||
padding: 10
|
||||
|
||||
font.pixelSize: UIStyle.fontSizeL
|
||||
color: UIStyle.titletextColor
|
||||
|
||||
text: "Leaderboard"
|
||||
}
|
||||
|
||||
HorizontalHeaderView {
|
||||
Layout.fillWidth: true
|
||||
syncView: tableView
|
||||
|
||||
Reference in New Issue
Block a user