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:
authorThomas Karl Pietrowski <thopiekar@gmail.com>2019-09-21 23:57:23 +0300
committerThomas Karl Pietrowski <thopiekar@gmail.com>2019-09-21 23:57:23 +0300
commitbdc35d75733700085fb6281b8d309a9dd0834276 (patch)
treeb081a469452df645d81a6bdf265a42725c640e3b /plugins/MonitorStage
parent8b8429d629639d5b120dbe45fe44590af76926ac (diff)
plugins: Reweighting stages
In theory it should be possible to add stages, but there is no possiblity to add any other stage in between. Therefore I moved the weights by 10+n*10. So we can add 10 before prepare and 9 stages between those 3 known stages. It is probably possible to set the same weight to multiple stages, but I'm not sure how Cura decides, which stage to take first then. By the moment the plugin's init is called? Or by alphabet? Therefore putting some space in between the weights should give some clearity.
Diffstat (limited to 'plugins/MonitorStage')
-rw-r--r--plugins/MonitorStage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/MonitorStage/__init__.py b/plugins/MonitorStage/__init__.py
index 0468e6319b..a755268c79 100644
--- a/plugins/MonitorStage/__init__.py
+++ b/plugins/MonitorStage/__init__.py
@@ -12,7 +12,7 @@ def getMetaData():
return {
"stage": {
"name": i18n_catalog.i18nc("@item:inmenu", "Monitor"),
- "weight": 2
+ "weight": 30
}
}