Use different success message if erase profile is used.

Erase has been written sounds a bit odd.
This commit is contained in:
Floris Bos 2020-05-23 14:12:23 +02:00
parent c96e5474d0
commit 224ebebb04

View file

@ -892,6 +892,9 @@ ApplicationWindow {
function onSuccess() { function onSuccess() {
msgpopupheader.text = qsTr("Write Successful") msgpopupheader.text = qsTr("Write Successful")
if (osbutton.text === qsTr("Erase"))
msgpopupbody.text = qsTr("<b>%2</b> has been erased<br><br>You can now remove the SD card from the reader").arg(dstbutton.text)
else
msgpopupbody.text = qsTr("<b>%1</b> has been written to <b>%2</b><br><br>You can now remove the SD card from the reader").arg(osbutton.text).arg(dstbutton.text) msgpopupbody.text = qsTr("<b>%1</b> has been written to <b>%2</b><br><br>You can now remove the SD card from the reader").arg(osbutton.text).arg(dstbutton.text)
msgpopup.open() msgpopup.open()
imageWriter.setDst("") imageWriter.setDst("")