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:
authorChrisTerBeke <c.terbeke@ultimaker.com>2017-12-06 19:46:18 +0300
committerChrisTerBeke <c.terbeke@ultimaker.com>2017-12-06 19:46:18 +0300
commitee643610e5a4de384aa09f5ef5399c94a4972574 (patch)
tree09b06dbdfe08270fc9bf4dc36144f457609b8389 /cura/Stages
parent2d044a37ae364accfbd86dcf25c026046e0a7228 (diff)
Fix sidebar loading and unloading depending on active stage
Diffstat (limited to 'cura/Stages')
-rw-r--r--cura/Stages/CuraStage.py14
1 files changed, 9 insertions, 5 deletions
diff --git a/cura/Stages/CuraStage.py b/cura/Stages/CuraStage.py
index 6d4e56473d..8b7822ed7a 100644
--- a/cura/Stages/CuraStage.py
+++ b/cura/Stages/CuraStage.py
@@ -1,18 +1,22 @@
# Copyright (c) 2017 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
-from PyQt5.QtCore import pyqtProperty, QObject
+from PyQt5.QtCore import pyqtProperty, QUrl, QObject
from UM.Stage import Stage
class CuraStage(Stage):
- def __init__(self):
- super().__init__()
+ def __init__(self, parent = None):
+ super().__init__(parent)
- @pyqtProperty(QObject, constant = True)
+ @pyqtProperty(str, constant = True)
+ def stageId(self):
+ return self.getPluginId()
+
+ @pyqtProperty(QUrl, constant = True)
def mainComponent(self):
return self.getDisplayComponent("main")
- @pyqtProperty(QObject, constant = True)
+ @pyqtProperty(QUrl, constant = True)
def sidebarComponent(self):
return self.getDisplayComponent("sidebar")