mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue