mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 18:36:05 +08:00
Make load more button load more packages
This adds the functionality of the button. Contributes to issue CURA-8556.
This commit is contained in:
parent
46ad1ad077
commit
e3cd5606f0
@ -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.
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user