mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Linux embedded: quit (reboot) when finished
This commit is contained in:
parent
2d87a2275f
commit
832be86e79
2 changed files with 19 additions and 1 deletions
7
main.qml
7
main.qml
|
@ -903,6 +903,11 @@ ApplicationWindow {
|
|||
msgpopup.text = qsTr("<b>%1</b> has been erased<br><br>You can now remove the SD card from the reader").arg(dstbutton.text)
|
||||
else
|
||||
msgpopup.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)
|
||||
if (imageWriter.isEmbeddedMode()) {
|
||||
msgpopup.continueButton = false
|
||||
msgpopup.quitButton = true
|
||||
}
|
||||
|
||||
msgpopup.openPopup()
|
||||
imageWriter.setDst("")
|
||||
dstbutton.text = qsTr("CHOOSE STORAGE")
|
||||
|
@ -959,7 +964,7 @@ ApplicationWindow {
|
|||
if ("imager" in o) {
|
||||
var imager = o["imager"]
|
||||
if ("latest_version" in imager && "url" in imager) {
|
||||
if (imageWriter.isVersionNewer(imager["latest_version"])) {
|
||||
if (!imageWriter.isEmbeddedMode() && imageWriter.isVersionNewer(imager["latest_version"])) {
|
||||
updatepopup.url = imager["url"]
|
||||
updatepopup.openPopup()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue