diff options
author | Nino van Hooff <ninovanhooff@gmail.com> | 2019-10-09 17:53:19 +0300 |
---|---|---|
committer | Nino van Hooff <ninovanhooff@gmail.com> | 2019-10-09 17:53:19 +0300 |
commit | 87bbf3259791efc1724f3509f0db239b6af1794e (patch) | |
tree | 1326f194d1a81229f5b71633eac8cc96e2ad0f7c /plugins/SimulationView | |
parent | 4148f56d2b58465055914910f08e1a92fe657586 (diff) |
Rename is_simulation_playing
CURA-6853
Diffstat (limited to 'plugins/SimulationView')
-rw-r--r-- | plugins/SimulationView/SimulationViewMainComponent.qml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/SimulationView/SimulationViewMainComponent.qml b/plugins/SimulationView/SimulationViewMainComponent.qml index c115dafe26..ddbb5b6224 100644 --- a/plugins/SimulationView/SimulationViewMainComponent.qml +++ b/plugins/SimulationView/SimulationViewMainComponent.qml @@ -11,7 +11,7 @@ import Cura 1.0 as Cura Item { - property bool is_simulation_playing: false + property bool isSimulationPlaying: false // By default, the layer slider can extend to the entire height of the parent // A parent may bind this property to indicate the bottom of a safe area // for the Layer slider @@ -64,7 +64,7 @@ Item UM.SimpleButton { id: playButton - iconSource: !is_simulation_playing ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg" + iconSource: !isSimulationPlaying ? "./resources/simulation_resume.svg": "./resources/simulation_pause.svg" width: UM.Theme.getSize("small_button").width height: UM.Theme.getSize("small_button").height hoverColor: UM.Theme.getColor("slider_handle_active") @@ -94,7 +94,7 @@ Item onClicked: { - if(is_simulation_playing) + if(isSimulationPlaying) { pauseSimulation() } @@ -108,7 +108,7 @@ Item { UM.SimulationView.setSimulationRunning(false) simulationTimer.stop() - is_simulation_playing = false + isSimulationPlaying = false layerSlider.manuallyChanged = true pathSlider.manuallyChanged = true } @@ -137,7 +137,7 @@ Item // When the user plays the simulation, if the path slider is at the end of this layer, we start // the simulation at the beginning of the current layer. - if (!is_simulation_playing) + if (!isSimulationPlaying) { if (currentPath >= numPaths) { @@ -172,7 +172,7 @@ Item } // The status must be set here instead of in the resumeSimulation function otherwise it won't work // correctly, because part of the logic is in this trigger function. - is_simulation_playing = true + isSimulationPlaying = true } } |