mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Only show Footer when the packagelist is paginated
It doesn't make sense to show a footer when items are retrieved in one go. Except when an error occurs. Contributes to CURA-8558
This commit is contained in:
parent
c4c99f6657
commit
3f700e5d0c
3 changed files with 9 additions and 1 deletions
|
@ -22,6 +22,7 @@ class PackageList(ListModel):
|
|||
self.addRoleName(self.PackageRole, "package")
|
||||
self._is_loading = False
|
||||
self._has_more = False
|
||||
self._has_footer = True
|
||||
|
||||
@pyqtSlot()
|
||||
def updatePackages(self) -> None:
|
||||
|
@ -85,3 +86,7 @@ class PackageList(ListModel):
|
|||
:return: An error message, if any, or an empty string if everything went okay.
|
||||
"""
|
||||
return self._error_message
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def hasFooter(self) -> bool:
|
||||
return self._has_footer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue