Skip to content

Commit

Permalink
Option to disable Volume slider on status page #1726
Browse files Browse the repository at this point in the history
  • Loading branch information
darylc committed Jan 29, 2024
1 parent ed0a433 commit f70dcfe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,8 @@ class="buttons btn-rounded btn-detract disableButtons"
<div class="labelHeading">Volume</div>
<span id='volume' class='volume'></span>
</div>
<? if ($settings['disableAudioVolumeSlider'] != '1') {
?>
<div class="volumeControls">
<button class='volumeButton buttons' onClick="DecrementVolume();">
<i class='fas fa-fw fa-volume-down'></i>
Expand All @@ -461,6 +463,9 @@ class="buttons btn-rounded btn-detract disableButtons"
</button>
<span id='speaker'></span> <!-- Volume -->
</div>
<?php
}
?>
</div>

</div>
Expand Down
13 changes: 12 additions & 1 deletion www/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
"VLCOptions",
"mediaOffset",
"remoteIgnoreSync",
"disableIPAnnouncement"
"disableIPAnnouncement",
"disableAudioVolumeSlider"
]
},
"generalPlayback": {
Expand Down Expand Up @@ -795,6 +796,16 @@
"!MacOS"
]
},
"disableAudioVolumeSlider": {
"name": "disableAudioVolumeSlider",
"description": "Disable Volume Slider",
"gatherStats": true,
"tip": "This setting will remove the Audio Volume Slider on the Status Page to prevent accidental unwanted volume changes.",
"type": "checkbox",
"platforms": [
"!MacOS"
]
},
"disableUIWarnings": {
"name": "disableUIWarnings",
"description": "Disable restart/reboot UI Warnings",
Expand Down

0 comments on commit f70dcfe

Please sign in to comment.