mirror of
https://github.com/Ultimaker/Cura.git
synced 2026-01-28 11:50:43 -07:00
Connection state changes now trigger a re-evaluation of the icon
CL-541
This commit is contained in:
parent
52d25042eb
commit
931c87716b
1 changed files with 2 additions and 0 deletions
|
|
@ -59,12 +59,14 @@ class MonitorStage(CuraStage):
|
|||
if new_output_device != self._printer_output_device:
|
||||
if self._printer_output_device:
|
||||
self._printer_output_device.acceptsCommandsChanged.disconnect(self._updateIconSource)
|
||||
self._printer_output_device.connectionStateChanged.disconnect(self._updateIconSource)
|
||||
self._printer_output_device.printersChanged.disconnect(self._onActivePrinterChanged)
|
||||
|
||||
self._printer_output_device = new_output_device
|
||||
|
||||
self._printer_output_device.acceptsCommandsChanged.connect(self._updateIconSource)
|
||||
self._printer_output_device.printersChanged.connect(self._onActivePrinterChanged)
|
||||
self._printer_output_device.connectionStateChanged.connect(self._updateIconSource)
|
||||
self._setActivePrinter(self._printer_output_device.activePrinter)
|
||||
|
||||
# Force an update of the icon source
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue