qml: Remove customisation button, roll into flow

This patch carries a translation risk, as we change the default
progression button.

Remove the customisation button all together, and make the customisation
options something we offer as part of flashing an image that
has that capability.

While this adds an additional click to the flash sequence, it should
provide a steer to people who are flashing customisable images to make
use of this capability, potentially avoiding an additional pass through the
Imager.
This commit is contained in:
Tom Dewey tom.dewey@raspberrypi.com 2023-10-11 13:22:32 +01:00
parent 9fb9fca065
commit 2b2fd7de8a
2 changed files with 9 additions and 28 deletions

View file

@ -70,7 +70,7 @@ Popup {
Layout.topMargin: 10
font.family: roboto.name
font.bold: true
text: qsTr("Warning: advanced settings set")
text: qsTr("Use image customisation?")
}
Text {
@ -83,8 +83,9 @@ Popup {
Layout.fillHeight: true
Layout.leftMargin: 25
Layout.topMargin: 25
Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
Accessible.name: text.replace(/<\/?[^>]+(>|$)/g, "")
text: qsTr("Would you like to apply the image customization settings saved earlier?")
text: qsTr("Would you like to apply image customization settings?")
}
RowLayout {
@ -111,6 +112,7 @@ Popup {
}
Material.foreground: activeFocus ? "#d1dcfb" : "#ffffff"
Material.background: "#c51a4a"
enabled: imageWriter.hasSavedCustomizationSettings() ? true : false
}
ImButton {
@ -121,6 +123,7 @@ Popup {
}
Material.foreground: activeFocus ? "#d1dcfb" : "#ffffff"
Material.background: "#c51a4a"
enabled: imageWriter.hasSavedCustomizationSettings() ? true : false
}
ImButton {