diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-09-15 18:28:48 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-09-15 18:28:48 +0300 |
commit | 8e41a03c58828dae799d32314a5900582c01c347 (patch) | |
tree | 45fe36ba6aebaf627c7ec93ec24330e3eb54b955 /resources | |
parent | ceb5fe75cf1143f2ab6525fc73f4a152e191cd8d (diff) |
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
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/Preferences/MachinesPage.qml | 7 |
1 files changed, 7 insertions, 0 deletions
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 |