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
This commit is contained in:
David Turner 2023-10-04 14:40:55 +01:00
parent 63124443c3
commit dbf9757796

View file

@ -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"