diff options
Diffstat (limited to 'web/share/js/kvm/stream.js')
-rw-r--r-- | web/share/js/kvm/stream.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index 7ea7d722..80832c7f 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -67,6 +67,10 @@ export function Streamer() { /************************************************************************/ self.setState = function(state) { + if (state) { + tools.setFeatureEnabled($("stream-quality"), state.features.quality && (state.state === null || state.state.encoder.quality > 0)); + } + if (state && state.state) { let max_fps = state.limits.max_fps; state = state.state; |