mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-15 07:33:15 +08:00
move signal function to bottom of file
CURA-9424
This commit is contained in:
parent
d12b59ec0f
commit
cde07b9fe4
@ -23,20 +23,6 @@ UM.Dialog
|
|||||||
margin: UM.Theme.getSize("default_margin").width
|
margin: UM.Theme.getSize("default_margin").width
|
||||||
property int comboboxHeight: UM.Theme.getSize("default_margin").height
|
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
|
Flickable
|
||||||
{
|
{
|
||||||
clip: true
|
clip: true
|
||||||
@ -498,6 +484,19 @@ UM.Dialog
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
onClosing: manager.notifyClosed()
|
||||||
onRejected: manager.onCancelButtonClicked()
|
onRejected: manager.onCancelButtonClicked()
|
||||||
onAccepted: manager.onOkButtonClicked()
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user