From 2e1f2a37a3fafaec9557812342ed135c96f97818 Mon Sep 17 00:00:00 2001 From: casper Date: Wed, 9 Feb 2022 16:45:34 +0100 Subject: [PATCH] Fix centering of `MessageDialog` Instead of centering in the parent the dialog is now center within the `Overlay.overlay`. This is the window container. CURA 8687 --- resources/qml/MainWindow/ApplicationMenu.qml | 1 - resources/qml/Preferences/Materials/MaterialsView.qml | 1 - 2 files changed, 2 deletions(-) diff --git a/resources/qml/MainWindow/ApplicationMenu.qml b/resources/qml/MainWindow/ApplicationMenu.qml index 1298b6bdf1..707111309c 100644 --- a/resources/qml/MainWindow/ApplicationMenu.qml +++ b/resources/qml/MainWindow/ApplicationMenu.qml @@ -63,7 +63,6 @@ Item UM.MessageDialog { id: newProjectDialog - anchors.centerIn: base title: catalog.i18nc("@title:window", "New project") text: catalog.i18nc("@info:question", "Are you sure you want to start a new project? This will clear the build plate and any unsaved settings.") diff --git a/resources/qml/Preferences/Materials/MaterialsView.qml b/resources/qml/Preferences/Materials/MaterialsView.qml index c43b31bbcb..14890b2d9f 100644 --- a/resources/qml/Preferences/Materials/MaterialsView.qml +++ b/resources/qml/Preferences/Materials/MaterialsView.qml @@ -122,7 +122,6 @@ Item UM.MessageDialog { id: confirmDiameterChangeDialog - anchors.centerIn: base title: catalog.i18nc("@title:window", "Confirm Diameter Change") text: catalog.i18nc("@label (%1 is a number)", "The new filament diameter is set to %1 mm, which is not compatible with the current extruder. Do you wish to continue?".arg(new_diameter_value))