From 1ab22a1d9e4520dc7604e623150da1bfad705f6f Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Thu, 18 May 2023 15:03:43 +0200 Subject: [PATCH] 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) --- debian/changelog | 2 +- src/UseSavedSettingsPopup.qml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 6864775..e948002 100644 --- a/debian/changelog +++ b/debian/changelog @@ -6,7 +6,7 @@ rpi-imager (1.7.4.1) unstable; urgency=medium without clearing settings. * Eject storage properly on Linux. - -- Floris Bos Fri, 24 Mar 2023 14:16:03 +0100 + -- Floris Bos Thu, 18 May 2023 15:05:28 +0200 rpi-imager (1.7.4) unstable; urgency=medium diff --git a/src/UseSavedSettingsPopup.qml b/src/UseSavedSettingsPopup.qml index 925faa3..ce09c97 100644 --- a/src/UseSavedSettingsPopup.qml +++ b/src/UseSavedSettingsPopup.qml @@ -11,9 +11,9 @@ import "qmlcomponents" Popup { id: msgpopup - x: 75 + x: (parent.width-width)/2 y: (parent.height-height)/2 - width: parent.width-150 + width: Math.max(buttons.width+10, parent.width-150) height: msgpopupbody.implicitHeight+150 padding: 0 closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside @@ -91,6 +91,7 @@ Popup { Layout.alignment: Qt.AlignCenter | Qt.AlignBottom Layout.bottomMargin: 10 spacing: 20 + id: buttons ImButton { text: qsTr("NO")