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:
authorRemco Burema <r.burema@ultimaker.com>2019-02-20 15:27:05 +0300
committerRemco Burema <r.burema@ultimaker.com>2019-02-20 15:27:05 +0300
commitb4e4b7125d5decfa972d76153aaa0640b662210e (patch)
tree44ccad2c28ce4dcdfcc459a184fc7089bfae6566 /resources/qml/Menus/ConfigurationMenu/CustomConfiguration.qml
parentf81ad588368c332370829e5f40e99ffae7d2ec2a (diff)
Fix tab-bar of config.-menu always on idex 0 on reshow. [CURA-6232]
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 606dc142be..141e85a10b 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.