mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 13:55:56 +08:00
Use rejected instead of visibility hack
CURA-6590
This commit is contained in:
parent
1f542d1bc8
commit
b36d040ba9
@ -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:
|
||||||
{
|
{
|
||||||
@ -122,15 +121,7 @@ TabView
|
|||||||
diameterSpinBox.value = properties.diameter;
|
diameterSpinBox.value = 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…
x
Reference in New Issue
Block a user