mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Prevent spurious updates to 'onPreferenceChanged's if the preference doesn't match.
This commit is contained in:
parent
c991741a45
commit
f057c9a7df
7 changed files with 35 additions and 0 deletions
|
@ -71,6 +71,11 @@ Item
|
|||
target: UM.Preferences
|
||||
onPreferenceChanged:
|
||||
{
|
||||
if (preference !== "view/only_show_top_layers" && preference !== "view/top_layer_count" && ! preference.match("layerview/"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
playButton.pauseSimulation()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue