mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 11:33:12 +08:00
Fix: Monitor icon state was not updated properly
CURA-4977
This commit is contained in:
parent
f6ff6fdcba
commit
3ed9ac1e83
@ -69,9 +69,11 @@ class MonitorStage(CuraStage):
|
|||||||
self._printer_output_device.connectionStateChanged.connect(self._updateIconSource)
|
self._printer_output_device.connectionStateChanged.connect(self._updateIconSource)
|
||||||
self._setActivePrinter(self._printer_output_device.activePrinter)
|
self._setActivePrinter(self._printer_output_device.activePrinter)
|
||||||
|
|
||||||
# Force an update of the icon source
|
# Force an update of the icon source
|
||||||
self._updateIconSource()
|
self._updateIconSource()
|
||||||
except IndexError:
|
except IndexError:
|
||||||
|
#If index error occurs, then the icon on monitor button also should be updated
|
||||||
|
self._updateIconSource()
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def _onEngineCreated(self):
|
def _onEngineCreated(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user