mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Cleanup
CURA-9793
This commit is contained in:
parent
62bae7df19
commit
01ebee4aea
2 changed files with 4 additions and 5 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue