Fix updating icon in the top bar

This makes sure events such as onAcceptsCommandsChanges get connected if an outputdevice has been added before the monitorstage is initialized.
This commit is contained in:
fieldOfView 2018-01-10 00:07:43 +01:00
parent 99de75a3fd
commit 2ce73a1839

View File

@ -77,6 +77,7 @@ class MonitorStage(CuraStage):
def _onEngineCreated(self):
# We can only connect now, as we need to be sure that everything is loaded (plugins get created quite early)
Application.getInstance().getMachineManager().outputDevicesChanged.connect(self._onOutputDevicesChanged)
self._onOutputDevicesChanged()
self._updateMainOverlay()
self._updateSidebar()
self._updateIconSource()