Pause simulation view when preferences have been changed.

I accidentally removed this feature when working on CURA-5829, but
it was spotted in the review.
This commit is contained in:
Jaime van Kessel 2018-11-05 11:47:22 +01:00
parent 4659b0d387
commit f0e205423f

View file

@ -61,6 +61,16 @@ Item
iconSource: !is_simulation_playing ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg"
style: UM.Theme.styles.small_tool_button
visible: !UM.SimulationView.compatibilityMode
Connections
{
target: UM.Preferences
onPreferenceChanged:
{
playButton.pauseSimulation()
}
}
anchors
{
right: pathSlider.left