Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2022-09-15 18:28:48 +0300
committerJaime van Kessel <nallath@gmail.com>2022-09-15 18:28:48 +0300
commit8e41a03c58828dae799d32314a5900582c01c347 (patch)
tree45fe36ba6aebaf627c7ec93ec24330e3eb54b955 /resources
parentceb5fe75cf1143f2ab6525fc73f4a152e191cd8d (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.qml7
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