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:
authorGhostkeeper <rubend@tutanota.com>2016-11-04 16:24:43 +0300
committerGhostkeeper <rubend@tutanota.com>2016-11-04 16:24:43 +0300
commit472c3b0d7b8fb36c40bbed9b70048c04c416270a (patch)
tree28db94c56028c047b9a230da38979e505a051f9a
parentd7a6173407fcc2b7066cb65c59f338a1a2e998cf (diff)
Blur focus upon changing profiles, material, variant, etc.2.3.12.3
Otherwise the currently focussed setting gets taken along to after the switch.
-rw-r--r--resources/qml/SidebarHeader.qml9
1 files changed, 8 insertions, 1 deletions
diff --git a/resources/qml/SidebarHeader.qml b/resources/qml/SidebarHeader.qml
index 16c6a6a8ce..700384c394 100644
--- a/resources/qml/SidebarHeader.qml
+++ b/resources/qml/SidebarHeader.qml
@@ -222,6 +222,7 @@ Column
width: materialSelection.visible ? (parent.width - UM.Theme.getSize("default_margin").width) / 2 : parent.width
anchors.left: parent.left
style: UM.Theme.styles.sidebar_header_button
+ activeFocusOnPress: true;
menu: NozzleMenu { extruderIndex: base.currentExtruderIndex }
}
@@ -252,6 +253,7 @@ Column
width: variantSelection.visible ? (parent.width - UM.Theme.getSize("default_margin").width) / 2 : parent.width
anchors.right: parent.right
style: UM.Theme.styles.sidebar_header_button
+ activeFocusOnPress: true;
menu: MaterialMenu { extruderIndex: base.currentExtruderIndex }
}
@@ -301,6 +303,7 @@ Column
height: UM.Theme.getSize("setting_control").height
tooltip: Cura.MachineManager.activeQualityName
style: UM.Theme.styles.sidebar_header_button
+ activeFocusOnPress: true;
property var valueWarning: ! Cura.MachineManager.isActiveQualitySupported
menu: ProfileMenu { }
@@ -319,7 +322,11 @@ Column
color: hovered ? UM.Theme.getColor("setting_control_button_hover") : UM.Theme.getColor("setting_control_button");
iconSource: UM.Theme.getIcon("star");
- onClicked: Cura.Actions.manageProfiles.trigger()
+ onClicked:
+ {
+ forceActiveFocus();
+ Cura.Actions.manageProfiles.trigger()
+ }
onEntered:
{
var content = catalog.i18nc("@tooltip","Some setting values are different from the values stored in the profile.\n\nClick to open the profile manager.")