From dbf9757796b569967f82a1ffeca45b37f119e1c7 Mon Sep 17 00:00:00 2001 From: David Turner Date: Wed, 4 Oct 2023 14:40:55 +0100 Subject: [PATCH] Show options when opening image by file association If you load a custom image by running `rpi-imager my_image.img.xz` then the Advanced Options button is not shown. This is triggered if you set a file association to load rpi-imager and then double-click an image file. The fix is simply to set the visibility on this button on start-up (custom images set on the command-line are loaded before this). Fixes #451 --- src/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.qml b/src/main.qml index 16efed6..ce65977 100644 --- a/src/main.qml +++ b/src/main.qml @@ -241,7 +241,7 @@ ApplicationWindow { onClicked: { optionspopup.openPopup() } - visible: false + visible: imageWriter.imageSupportsCustomization() Accessible.description: qsTr("Select this button to access advanced settings") contentItem: Image { source: "icons/ic_cog_red.svg"