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
This commit is contained in:
Jaime van Kessel 2022-09-15 17:28:48 +02:00
parent ceb5fe75cf
commit 8e41a03c58
No known key found for this signature in database
GPG key ID: C85F7A3AF1BAA7C4

View file

@ -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