From 2ce73a18397b0d0440a85a10d017c5568953d1b3 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Wed, 10 Jan 2018 00:07:43 +0100 Subject: [PATCH] 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. --- plugins/MonitorStage/MonitorStage.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/MonitorStage/MonitorStage.py b/plugins/MonitorStage/MonitorStage.py index b5a38dad70..1a999ca896 100644 --- a/plugins/MonitorStage/MonitorStage.py +++ b/plugins/MonitorStage/MonitorStage.py @@ -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()