don't display gated state

This commit is contained in:
Wayne Chen 2019-02-28 15:50:13 -08:00
parent 49c3dfa52c
commit 48b4fe37b4

View file

@ -54,8 +54,8 @@ Rectangle {
}
onLevelChanged: {
var rectOpacity = AudioScriptingInterface.muted && (level >= userSpeakingLevel)? 0.9 : 0.3;
if (mouseArea.containsMouse) {
var rectOpacity = muted && (level >= userSpeakingLevel) ? 0.9 : 0.3;
if (mouseArea.containsMouse && rectOpacity != 0.9) {
rectOpacity = 0.5;
}
opacity = rectOpacity;