mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
OS selector: Return to home after close
Prior to this change, you could enter a submenu of the OS selector, close the window, and then change device filter - presenting stale information when you went back in to the OS selector. Work around this by resetting the OS selector sequence when you close the OS selector window.
This commit is contained in:
parent
3f665e01b4
commit
d603d29671
1 changed files with 3 additions and 0 deletions
|
@ -541,6 +541,7 @@ ApplicationWindow {
|
|||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: {
|
||||
ospopup.close()
|
||||
osswipeview.decrementCurrentIndex()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1266,6 +1267,7 @@ ApplicationWindow {
|
|||
imageWriter.setSrc(file)
|
||||
osbutton.text = imageWriter.srcFileName()
|
||||
ospopup.close()
|
||||
osswipeview.decrementCurrentIndex()
|
||||
if (imageWriter.readyToWrite()) {
|
||||
writebutton.enabled = true
|
||||
}
|
||||
|
@ -1596,6 +1598,7 @@ ApplicationWindow {
|
|||
imageWriter.setSrc(d.url, d.image_download_size, d.extract_size, typeof(d.extract_sha256) != "undefined" ? d.extract_sha256 : "", typeof(d.contains_multiple_files) != "undefined" ? d.contains_multiple_files : false, ospopup.categorySelected, d.name, typeof(d.init_format) != "undefined" ? d.init_format : "")
|
||||
osbutton.text = d.name
|
||||
ospopup.close()
|
||||
osswipeview.decrementCurrentIndex()
|
||||
if (imageWriter.readyToWrite()) {
|
||||
writebutton.enabled = true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue