From cde07b9fe443a21339917e60cd5ba36e924c4692 Mon Sep 17 00:00:00 2001 From: Joey de l'Arago Date: Wed, 2 Nov 2022 14:18:47 +0100 Subject: [PATCH] move signal function to bottom of file CURA-9424 --- plugins/3MFReader/WorkspaceDialog.qml | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/plugins/3MFReader/WorkspaceDialog.qml b/plugins/3MFReader/WorkspaceDialog.qml index 187d49693a..705fe2afe8 100644 --- a/plugins/3MFReader/WorkspaceDialog.qml +++ b/plugins/3MFReader/WorkspaceDialog.qml @@ -23,20 +23,6 @@ UM.Dialog margin: UM.Theme.getSize("default_margin").width property int comboboxHeight: UM.Theme.getSize("default_margin").height - onClosing: manager.notifyClosed() - onVisibleChanged: - { - if (visible) - { - // Force relead the comboboxes - // Since this dialog is only created once the first time you open it, these comboxes need to be reloaded - // each time it is shown after the first time so that the indexes will update correctly. - materialSection.reloadValues() - profileSection.reloadValues() - printerSection.reloadValues() - } - } - Flickable { clip: true @@ -498,6 +484,19 @@ UM.Dialog } ] + onClosing: manager.notifyClosed() onRejected: manager.onCancelButtonClicked() onAccepted: manager.onOkButtonClicked() + onVisibleChanged: + { + if (visible) + { + // Force relead the comboboxes + // Since this dialog is only created once the first time you open it, these comboxes need to be reloaded + // each time it is shown after the first time so that the indexes will update correctly. + materialSection.reloadValues() + profileSection.reloadValues() + printerSection.reloadValues() + } + } }