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:
authorLipu Fei <lipu.fei815@gmail.com>2019-02-22 15:38:29 +0300
committerLipu Fei <lipu.fei815@gmail.com>2019-02-22 15:38:29 +0300
commit4d3211e651ebaf22bcf283f0e03dc62800d26d64 (patch)
tree3a1d38f1cda871864d27c1e467916d37b498360b /resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
parentac18d88d222149a21d5459e5d00597efcf4a002f (diff)
parent2694ef98e07a547e43ed08943d2cfaf3b02692c4 (diff)
Merge remote-tracking branch 'origin/4.0'
Diffstat (limited to 'resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml')
-rw-r--r--resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
index 5398a0266a..708606f483 100644
--- a/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
+++ b/resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
@@ -124,6 +124,15 @@ Item
}
}
+ // Can't use 'item: ...activeExtruderIndex' directly apparently, see also the comment on the previous block.
+ onVisibleChanged:
+ {
+ if (tabBar.visible)
+ {
+ tabBar.setCurrentIndex(Cura.ExtruderManager.activeExtruderIndex);
+ }
+ }
+
//When the model of the extruders is rebuilt, the list of extruders is briefly emptied and rebuilt.
//This causes the currentIndex of the tab to be in an invalid position which resets it to 0.
//Therefore we need to change it back to what it was: The active extruder index.