mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-26 20:31:35 -07:00
Merge branch 'CURA-6590_continue_fix_diameter_reset'
This commit is contained in:
commit
b87a0a7e82
1 changed files with 3 additions and 12 deletions
|
|
@ -107,7 +107,6 @@ TabView
|
||||||
property var new_diameter_value: null;
|
property var new_diameter_value: null;
|
||||||
property var old_diameter_value: null;
|
property var old_diameter_value: null;
|
||||||
property var old_approximate_diameter_value: null;
|
property var old_approximate_diameter_value: null;
|
||||||
property bool keyPressed: false
|
|
||||||
|
|
||||||
onYes:
|
onYes:
|
||||||
{
|
{
|
||||||
|
|
@ -118,19 +117,11 @@ TabView
|
||||||
|
|
||||||
onNo:
|
onNo:
|
||||||
{
|
{
|
||||||
properties.diameter = old_diameter_value;
|
base.properties.diameter = old_diameter_value;
|
||||||
diameterSpinBox.value = properties.diameter;
|
diameterSpinBox.value = Qt.binding(function() { return base.properties.diameter })
|
||||||
}
|
}
|
||||||
|
|
||||||
onVisibilityChanged:
|
onRejected: no()
|
||||||
{
|
|
||||||
if (!visible && !keyPressed)
|
|
||||||
{
|
|
||||||
// If the user closes this dialog without clicking on any button, it's the same as clicking "No".
|
|
||||||
no();
|
|
||||||
}
|
|
||||||
keyPressed = false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Display Name") }
|
Label { width: scrollView.columnWidth; height: parent.rowHeight; verticalAlignment: Qt.AlignVCenter; text: catalog.i18nc("@label", "Display Name") }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue