Merge pull request #18671 from Ultimaker/CURA-11720

Cura 11720
Tested with builds on the branch. Issue is resolved.
This commit is contained in:
HellAholic 2024-03-20 14:32:01 +01:00 committed by GitHub
commit ef784c588c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 9 deletions

View File

@ -41,7 +41,7 @@ class SpecificSettingsModel(ListModel):
"label": stack.getProperty(setting, "label"),
"value": value
})
self.modelChanged.emit()
self.modelChanged.emit()
def _update(self):
Logger.debug(f"Updating {self.__class__.__name__}")

View File

@ -362,6 +362,10 @@ class WorkspaceDialog(QObject):
def exportedSettingModel(self):
return self._exported_settings_model
@pyqtProperty("QVariantList", notify=exportedSettingModelChanged)
def exportedSettingModelItems(self):
return self._exported_settings_model.items
@pyqtProperty(int, notify=exportedSettingModelChanged)
def exportedSettingModelRowCount(self):
return self._exported_settings_model.rowCount()

View File

@ -209,16 +209,9 @@ UM.Dialog
{
id: tableModel
headers: ["category", "label", "value"]
rows: manager.exportedSettingModel.items
rows: manager.exportedSettingModelItems
}
}
property var modelRows: manager.exportedSettingModel.items
onModelRowsChanged:
{
tableModel.clear()
tableModel.rows = modelRows
}
}
comboboxVisible: manager.qualityChangesConflict