Update the _available_materials in the actual _update function

It's confusing that this would be updated in the _canUpdate function. Just cleanliness.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-21 17:41:02 +02:00
parent ea1c99b708
commit 8ef410e826
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
4 changed files with 13 additions and 12 deletions

View file

@ -19,9 +19,9 @@ class FavoriteMaterialsModel(BaseMaterialsModel):
self._update()
def _update(self):
super()._update()
if not self._canUpdate():
return
super()._update()
item_list = []