mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-24 03:11:03 -07:00
Reset confirm exit dialog text upon close
CURA-5384
This commit is contained in:
parent
49bd249819
commit
6d34d77b6b
1 changed files with 8 additions and 0 deletions
|
|
@ -720,6 +720,14 @@ UM.MainWindow
|
||||||
onYes: CuraApplication.callConfirmExitDialogCallback(true)
|
onYes: CuraApplication.callConfirmExitDialogCallback(true)
|
||||||
onNo: CuraApplication.callConfirmExitDialogCallback(false)
|
onNo: CuraApplication.callConfirmExitDialogCallback(false)
|
||||||
onRejected: CuraApplication.callConfirmExitDialogCallback(false)
|
onRejected: CuraApplication.callConfirmExitDialogCallback(false)
|
||||||
|
onVisibilityChanged:
|
||||||
|
{
|
||||||
|
if (!visible)
|
||||||
|
{
|
||||||
|
// reset the text to default because other modules may change the message text.
|
||||||
|
text = catalog.i18nc("@label", "Are you sure you want to exit Cura?");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Connections
|
Connections
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue