Make load more button load more packages

This adds the functionality of the button.

Contributes to issue CURA-8556.
This commit is contained in:
Ghostkeeper 2021-10-21 18:26:29 +02:00
parent 46ad1ad077
commit e3cd5606f0
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ class PackageList(ListModel):
self.request() self.request()
@pyqtSlot()
def request(self) -> None: def request(self) -> None:
""" """
Make a request for the first paginated page of packages. Make a request for the first paginated page of packages.

View file

@ -50,6 +50,7 @@ ScrollView
height: UM.Theme.getSize("card").height height: UM.Theme.getSize("card").height
enabled: pluginList.hasMore && !pluginList.isLoading enabled: pluginList.hasMore && !pluginList.isLoading
onClicked: pluginList.request() //Load next page in plug-in list.
background: Rectangle background: Rectangle
{ {