From 3e04d17b285ff3b1407f3217b9a43537af3f7474 Mon Sep 17 00:00:00 2001 From: woblight Date: Fri, 16 Aug 2024 19:00:43 +0200 Subject: [PATCH] Fix binding loops --- AddonsPanel.qml | 7 ++++--- main.qml | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/AddonsPanel.qml b/AddonsPanel.qml index 547f776..d42c1a2 100644 --- a/AddonsPanel.qml +++ b/AddonsPanel.qml @@ -210,8 +210,8 @@ Page { } Dialog { parent: window.overlay - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 + x: (parent.width - implicitWidth) / 2 + y: (parent.height - implicitHeight) / 2 title: qsTr("Following files will be deleted:") standardButtons: Dialog.Ok | Dialog.Cancel onAccepted: addon.confirmFileRemove(true) @@ -219,7 +219,8 @@ Page { modal: true visible: addon.filesToRemove != "" closePolicy: Popup.NoAutoClose - contentItem: ScrollView{ + ScrollView{ + anchors.fill: parent TextArea { text: addon.filesToRemove readOnly: true diff --git a/main.qml b/main.qml index 6650289..0c7f292 100644 --- a/main.qml +++ b/main.qml @@ -285,8 +285,8 @@ ApplicationWindow { } Dialog { - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 + x: (parent.width - implicitWidth) / 2 + y: (parent.height - implicitHeight) / 2 title: Engine.statusMessage id: cloningDialong ProgressBar {