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...
This commit is contained in:
Jaime van Kessel 2022-08-31 16:31:39 +02:00
parent 62b102cc74
commit 438871648b
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -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()