Commit fb5ef388 authored by Leander Schulten's avatar Leander Schulten
Browse files

Fix wrong displaying of the program running status

parent e99c7352
......@@ -8,14 +8,6 @@ ControlItem{
id:item
blockWidth: 3
blockHeight: 1
pressed: controlData?!controlData.programm.running:false
onPressedChanged: {
if(controlData.programm.running){
play.opacity = 1;
}else{
play.opacity = 0;
}
}
ControlItemBlock{
Image {
anchors.margins: 1
......@@ -38,7 +30,11 @@ ControlItem{
MouseArea{
anchors.fill:parent
onClicked: {controlData.programm.running=!controlData.programm.running;}
onClicked: {
controlData.programm.running = !controlData.programm.running;
item.pressed = controlData.programm.running;
play.opacity = !controlData.programm.running;
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment