diff --git a/plugins/USBPrinting/USBPrinterOutputDevice.py b/plugins/USBPrinting/USBPrinterOutputDevice.py index ddb215d882..109888a15d 100644 --- a/plugins/USBPrinting/USBPrinterOutputDevice.py +++ b/plugins/USBPrinting/USBPrinterOutputDevice.py @@ -100,7 +100,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice): return application.setConfirmExitDialogCallback(self._onConfirmExitDialogResult) - application.showConfirmExitDialog.emit("USB printing is in progress") + application.showConfirmExitDialog.emit(catalog.i18nc("@label", "A USB print is in progress, closing Cura will stop this print. Are you sure?")) def _onConfirmExitDialogResult(self, result: bool) -> None: if result: diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 2ad0c75cbe..61d2c9f655 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -720,6 +720,14 @@ UM.MainWindow onYes: CuraApplication.callConfirmExitDialogCallback(true) onNo: 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