diff --git a/gpt4all-chat/qml/ChatView.qml b/gpt4all-chat/qml/ChatView.qml index 58761c3a..7f9cd53c 100644 --- a/gpt4all-chat/qml/ChatView.qml +++ b/gpt4all-chat/qml/ChatView.qml @@ -987,11 +987,8 @@ Rectangle { ThumbsDownDialog { id: thumbsDownDialog - property point globalPoint: mapFromItem(window, - window.width / 2 - width / 2, - window.height / 2 - height / 2) - x: globalPoint.x - y: globalPoint.y + x: Math.round((parent.width - width) / 2) + y: Math.round((parent.height - height) / 2) width: 640 height: 300 property string text: value diff --git a/gpt4all-chat/qml/MyDialog.qml b/gpt4all-chat/qml/MyDialog.qml index 56365578..fccdc196 100644 --- a/gpt4all-chat/qml/MyDialog.qml +++ b/gpt4all-chat/qml/MyDialog.qml @@ -7,6 +7,7 @@ import QtQuick.Layouts Dialog { id: myDialog + parent: Overlay.overlay property alias closeButtonVisible: myCloseButton.visible background: Rectangle { width: parent.width