Size "Do you want to use saved settings?" dialog box better

Prevents buttons overflowing the dialog box when German language
translation is used.
(Issue reported on forum)
This commit is contained in:
Floris Bos 2023-05-18 15:03:43 +02:00
parent 1c62713219
commit 1ab22a1d9e
2 changed files with 4 additions and 3 deletions

2
debian/changelog vendored
View file

@ -6,7 +6,7 @@ rpi-imager (1.7.4.1) unstable; urgency=medium
without clearing settings. without clearing settings.
* Eject storage properly on Linux. * Eject storage properly on Linux.
-- Floris Bos <bos@je-eigen-domein.nl> Fri, 24 Mar 2023 14:16:03 +0100 -- Floris Bos <bos@je-eigen-domein.nl> Thu, 18 May 2023 15:05:28 +0200
rpi-imager (1.7.4) unstable; urgency=medium rpi-imager (1.7.4) unstable; urgency=medium

View file

@ -11,9 +11,9 @@ import "qmlcomponents"
Popup { Popup {
id: msgpopup id: msgpopup
x: 75 x: (parent.width-width)/2
y: (parent.height-height)/2 y: (parent.height-height)/2
width: parent.width-150 width: Math.max(buttons.width+10, parent.width-150)
height: msgpopupbody.implicitHeight+150 height: msgpopupbody.implicitHeight+150
padding: 0 padding: 0
closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside
@ -91,6 +91,7 @@ Popup {
Layout.alignment: Qt.AlignCenter | Qt.AlignBottom Layout.alignment: Qt.AlignCenter | Qt.AlignBottom
Layout.bottomMargin: 10 Layout.bottomMargin: 10
spacing: 20 spacing: 20
id: buttons
ImButton { ImButton {
text: qsTr("NO") text: qsTr("NO")