mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 21:44:01 -06:00
Hide dialog when accepting/rejecting
Under some circumstances, UM.Dialog would not hide the dialog, so we do it ourselves. CURA-2384
This commit is contained in:
parent
8e5dbb78a4
commit
e6570884fc
1 changed files with 10 additions and 2 deletions
|
@ -313,11 +313,19 @@ Cura.MachineAction
|
|||
rightButtons: [
|
||||
Button {
|
||||
text: catalog.i18nc("@action:button","Cancel")
|
||||
onClicked: manualPrinterDialog.reject()
|
||||
onClicked:
|
||||
{
|
||||
manualPrinterDialog.reject()
|
||||
manualPrinterDialog.hide()
|
||||
}
|
||||
},
|
||||
Button {
|
||||
text: catalog.i18nc("@action:button", "Ok")
|
||||
onClicked: manualPrinterDialog.accept()
|
||||
onClicked:
|
||||
{
|
||||
manualPrinterDialog.accept()
|
||||
manualPrinterDialog.hide()
|
||||
}
|
||||
enabled: manualPrinterDialog.addressText.trim() != ""
|
||||
isDefault: true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue