mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 00:59:01 +08:00
Only switch profiles with slider if there is an added machine
Otherwise we crash and burn. Contributes to issue CURA-4357.
This commit is contained in:
parent
261089eed3
commit
0183616b8f
@ -261,12 +261,14 @@ Item
|
|||||||
}
|
}
|
||||||
|
|
||||||
onValueChanged: {
|
onValueChanged: {
|
||||||
|
if(Cura.MachineManager.activeMachine != null)
|
||||||
//Prevent updating during view initializing. Trigger only if the value changed by user
|
|
||||||
if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue)
|
|
||||||
{
|
{
|
||||||
//start updating with short delay
|
//Prevent updating during view initializing. Trigger only if the value changed by user
|
||||||
qualitySliderChangeTimer.start();
|
if(qualityRowSlider.value != qualityRow.qualitySliderSelectedValue)
|
||||||
|
{
|
||||||
|
//start updating with short delay
|
||||||
|
qualitySliderChangeTimer.start();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user