mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Expanded states preserved when updating models
Did this so that models can be updated more often fixing bugs where when a material is set as "not favorite" in the favorites section, its updated accordingly in its "normal" section. It's also the ground work for saving material section expansion to preferences. Contributes to CURA-5378
This commit is contained in:
parent
13069a2f99
commit
2304aeaceb
6 changed files with 74 additions and 28 deletions
|
@ -8,7 +8,6 @@ class FavoriteMaterialsModel(BaseMaterialsModel):
|
|||
|
||||
def __init__(self, parent = None):
|
||||
super().__init__(parent)
|
||||
self._material_manager.favoritesUpdated.connect(self._update) # Update when favorites are changed
|
||||
self._update()
|
||||
|
||||
def _update(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue