Browse Source

Don't notify qml of update if no configurations changed

This might be the cause of #11608, but i'm not entirely sure. Whatever
the case, it's also not going to hurt checking this...
Jaime van Kessel 2 years ago
parent
commit
438871648b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      cura/PrinterOutput/Models/PrinterOutputModel.py

+ 3 - 2
cura/PrinterOutput/Models/PrinterOutputModel.py

@@ -350,5 +350,6 @@ class PrinterOutputModel(QObject):
             self.availableConfigurationsChanged.emit()
 
     def setAvailableConfigurations(self, new_configurations: List[PrinterConfigurationModel]) -> None:
-        self._available_printer_configurations = new_configurations
-        self.availableConfigurationsChanged.emit()
+        if self._available_printer_configurations != new_configurations:
+            self._available_printer_configurations = new_configurations
+            self.availableConfigurationsChanged.emit()