From 8e41a03c58828dae799d32314a5900582c01c347 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 15 Sep 2022 17:28:48 +0200 Subject: [PATCH] Grab focus when the dialog is hidden This ensures that all components in the loader lose the focus and thus trigger an update CURA-9523 --- resources/qml/Preferences/MachinesPage.qml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/resources/qml/Preferences/MachinesPage.qml b/resources/qml/Preferences/MachinesPage.qml index 258b45292e..4984087883 100644 --- a/resources/qml/Preferences/MachinesPage.qml +++ b/resources/qml/Preferences/MachinesPage.qml @@ -93,6 +93,13 @@ UM.ManagementPage maximumWidth: minimumWidth * 3 maximumHeight: minimumHeight * 3 backgroundColor: UM.Theme.getColor("main_background") + onVisibleChanged: + { + if(!visible) + { + actionDialog.loader.item.focus = true + } + } } UM.ConfirmRemoveDialog