From d603d2967177dd4fde4e5431fb84bba2adfa02bd Mon Sep 17 00:00:00 2001 From: "Tom Dewey tom.dewey@raspberrypi.com" Date: Thu, 5 Oct 2023 11:06:22 +0100 Subject: [PATCH] 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. --- src/main.qml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.qml b/src/main.qml index dec7d56..6e5f02d 100644 --- a/src/main.qml +++ b/src/main.qml @@ -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 }