mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:09:02 +08:00
Clear list of projects every time we load the first page
Otherwise when we refresh the project list after searching it would put the new results at the end. That's not what we want. Contributes to issue CURA-8009.
This commit is contained in:
parent
02932a1f62
commit
94e229aa44
@ -211,6 +211,7 @@ class DigitalFactoryController(QObject):
|
||||
|
||||
:param df_projects: A list of all the Digital Factory Library projects linked to the user's account
|
||||
"""
|
||||
self.clear()
|
||||
self.setHasMoreProjectsToLoad(self._api.hasMoreProjectsToLoad())
|
||||
self._project_model.setProjects(df_projects)
|
||||
self.setRetrievingProjectsStatus(RetrievalStatus.Success)
|
||||
|
Loading…
x
Reference in New Issue
Block a user