From 224ebebb0486d8fab598214e882f03d0a3379e09 Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Sat, 23 May 2020 14:12:23 +0200 Subject: [PATCH] Use different success message if erase profile is used. Erase has been written sounds a bit odd. --- main.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.qml b/main.qml index daa39d8..38ecaaa 100644 --- a/main.qml +++ b/main.qml @@ -892,7 +892,10 @@ ApplicationWindow { function onSuccess() { msgpopupheader.text = qsTr("Write Successful") - msgpopupbody.text = qsTr("%1 has been written to %2

You can now remove the SD card from the reader").arg(osbutton.text).arg(dstbutton.text) + if (osbutton.text === qsTr("Erase")) + msgpopupbody.text = qsTr("%2 has been erased

You can now remove the SD card from the reader").arg(dstbutton.text) + else + msgpopupbody.text = qsTr("%1 has been written to %2

You can now remove the SD card from the reader").arg(osbutton.text).arg(dstbutton.text) msgpopup.open() imageWriter.setDst("") dstbutton.text = qsTr("CHOOSE SD CARD")