mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 23:05:01 -06:00
Make doubly sure that settings are changed before closing dialog
This commit is contained in:
parent
d00bb2524e
commit
1b4bd05106
1 changed files with 11 additions and 5 deletions
|
@ -31,11 +31,17 @@ Cura.MachineAction
|
|||
target: dialog ? dialog : null
|
||||
ignoreUnknownSignals: true
|
||||
// Any which way this action dialog is dismissed, make sure it is properly finished
|
||||
onNextClicked: manager.onFinishAction()
|
||||
onBackClicked: manager.onFinishAction()
|
||||
onAccepted: manager.onFinishAction()
|
||||
onRejected: manager.onFinishAction()
|
||||
onClosing: manager.onFinishAction()
|
||||
onNextClicked: finishAction()
|
||||
onBackClicked: finishAction()
|
||||
onAccepted: finishAction()
|
||||
onRejected: finishAction()
|
||||
onClosing: finishAction()
|
||||
}
|
||||
|
||||
function finishAction()
|
||||
{
|
||||
forceActiveFocus();
|
||||
manager.onFinishAction();
|
||||
}
|
||||
|
||||
anchors.fill: parent;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue