mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Refresh list of intents upon changing category
The category is changed after constructing by the QML code in order to set its property. This is now updating twice: Once for the default category and once for the final one set by QML. This is a bit inefficient. But make it work before optimising it! Contributes to issue CURA-6597.
This commit is contained in:
parent
6e373e02c0
commit
45cb34c3e4
1 changed files with 1 additions and 0 deletions
|
@ -33,6 +33,7 @@ class IntentModel(ListModel):
|
|||
if self._intent_category != new_category:
|
||||
self._intent_category = new_category
|
||||
self._intent_category_changed.emit()
|
||||
self._update()
|
||||
|
||||
@pyqtProperty(str, fset = setIntentCategory, notify = _intent_category_changed)
|
||||
def intentCategory(self) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue