diff options
author | Jaime van Kessel <nallath@gmail.com> | 2022-09-16 15:39:20 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2022-09-16 15:39:36 +0300 |
commit | 1dc42cb69aa0333a676de6e93f665956c53ac905 (patch) | |
tree | 86e613c5a0a18d7f00b8b706cbb35ebd56517eda /resources | |
parent | 017560480a89bf9a25366928c436eb2e56078ae3 (diff) |
Fix refresh of ChoosePrinterDialog not workingCURA-9278_UI_UX_Fixes
CURA-9278
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/Dialogs/ChoosePrinterDialog.qml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/resources/qml/Dialogs/ChoosePrinterDialog.qml b/resources/qml/Dialogs/ChoosePrinterDialog.qml index b7079fcabd..69d9fc44cc 100644 --- a/resources/qml/Dialogs/ChoosePrinterDialog.qml +++ b/resources/qml/Dialogs/ChoosePrinterDialog.qml @@ -11,7 +11,7 @@ import Cura 1.0 as Cura UM.Dialog { property var manager - + property var compatible_machine_model: Cura.CompatibleMachineModel {} id: base title: catalog.i18nc("@title:window", "Select Printer") @@ -65,7 +65,11 @@ UM.Dialog color: UM.Theme.getColor("text_link") hoverColor: UM.Theme.getColor("text_scene_hover") - onClicked: manager.refresh() + onClicked: + { + manager.refresh() + base.compatible_machine_model.forceUpdate() + } } } @@ -73,7 +77,7 @@ UM.Dialog { id: contents - model: Cura.CompatibleMachineModel {} + model: base.compatible_machine_model delegate: Cura.PrintSelectorCard { |