fix the mute/unmute button

This commit is contained in:
Marco Martin 2014-11-13 14:29:09 +01:00
parent 38f59dfb39
commit e254f456ac

View file

@ -232,7 +232,7 @@ Rectangle {
DialerIconButton { DialerIconButton {
Layout.fillWidth: true Layout.fillWidth: true
Layout.fillHeight: true Layout.fillHeight: true
source: dialer.state == "incoming" ? "call-start" : (manager.muteMicrophone ? "audio-volume-high" : "audio-volume-muted") source: dialer.state == "incoming" ? "call-start" : (manager.isMicrophoneMuted ? "audio-volume-high" : "audio-volume-muted")
Rectangle { Rectangle {
z: -1 z: -1
color: dialer.state == "incoming" ? "green" : "white" color: dialer.state == "incoming" ? "green" : "white"
@ -249,7 +249,7 @@ Rectangle {
manager.activeVoiceCall.answer(); manager.activeVoiceCall.answer();
} }
} else { } else {
manager.setMuteMicrophone(manager.muteMicrophone ? false : true); manager.isMicrophoneMuted = !manager.isMicrophoneMuted;
} }
} }
} }