mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +02:00
replace redundant toggle logic
This commit is contained in:
parent
475430c1e0
commit
934b56bd50
1 changed files with 1 additions and 4 deletions
|
@ -15,9 +15,6 @@
|
|||
|
||||
var tablet = Tablet.getTablet("com.highfidelity.interface.tablet.system");
|
||||
|
||||
function muteURL() {
|
||||
return "icons/tablet-icons/" + (AudioDevice.getMuted() ? "mic-a.svg" : "mic-i.svg");
|
||||
}
|
||||
var button = tablet.addButton({
|
||||
icon: "icons/tablet-icons/mic-a.svg",
|
||||
text: "MUTE",
|
||||
|
@ -26,7 +23,7 @@ var button = tablet.addButton({
|
|||
});
|
||||
|
||||
function onMuteToggled() {
|
||||
button.editProperties({icon: muteURL()});
|
||||
button.editProperties({isActive: AudioDevice.getMuted()});
|
||||
}
|
||||
onMuteToggled();
|
||||
function onClicked(){
|
||||
|
|
Loading…
Reference in a new issue