Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfieldOfView <aldo@fieldofview.com>2018-01-10 02:07:43 +0300
committerfieldOfView <aldo@fieldofview.com>2018-01-10 02:07:43 +0300
commit2ce73a18397b0d0440a85a10d017c5568953d1b3 (patch)
treefb3edc05ecbde27da8d5ee9228bc807e29f5bd56 /plugins/MonitorStage
parent99de75a3fdafd5b1d653b638364dba2d61041712 (diff)
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.
Diffstat (limited to 'plugins/MonitorStage')
-rw-r--r--plugins/MonitorStage/MonitorStage.py1
1 files changed, 1 insertions, 0 deletions
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()