mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:15:51 +08:00
Cleanup
CURA-9793
This commit is contained in:
parent
62bae7df19
commit
01ebee4aea
@ -58,7 +58,9 @@ Cura.ComboBox {
|
|||||||
function onIsValueUsedChanged() { comboboxModel.updateModel() }
|
function onIsValueUsedChanged() { comboboxModel.updateModel() }
|
||||||
}
|
}
|
||||||
|
|
||||||
onCurrentIndexChanged:
|
onCurrentIndexChanged: updateSetting()
|
||||||
|
|
||||||
|
function updateSetting(value)
|
||||||
{
|
{
|
||||||
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code)
|
if (comboboxModel.get(currentIndex) && comboboxModel.get(currentIndex).code)
|
||||||
{
|
{
|
||||||
|
@ -63,10 +63,7 @@ RowLayout
|
|||||||
id: updateTimer
|
id: updateTimer
|
||||||
interval: 100
|
interval: 100
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered:
|
onTriggered: parseValueUpdateSetting()
|
||||||
{
|
|
||||||
parseValueUpdateSetting()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseValueUpdateSetting()
|
function parseValueUpdateSetting()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user