mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 13:39:02 +08:00
Only emit signal if the properties actually changed
This commit is contained in:
parent
aef89e2bd3
commit
b61bf3df4d
@ -35,6 +35,7 @@ class MultiBuildPlateModel(ListModel):
|
||||
self._active_build_plate = -1
|
||||
|
||||
def setMaxBuildPlate(self, max_build_plate):
|
||||
if self._max_build_plate != max_build_plate:
|
||||
self._max_build_plate = max_build_plate
|
||||
self.maxBuildPlateChanged.emit()
|
||||
|
||||
@ -44,6 +45,7 @@ class MultiBuildPlateModel(ListModel):
|
||||
return self._max_build_plate
|
||||
|
||||
def setActiveBuildPlate(self, nr):
|
||||
if self._active_build_plate != nr:
|
||||
self._active_build_plate = nr
|
||||
self.activeBuildPlateChanged.emit()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user