From 5d0b87afce3f9a148e8d781a523cae76d849aeaf Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Sun, 2 Nov 2025 17:39:01 +0100 Subject: [PATCH] If bitrate was higher than max, replace the max --- dashboard/qml/SettingsPage.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard/qml/SettingsPage.qml b/dashboard/qml/SettingsPage.qml index 8a6049ce..922aad3c 100644 --- a/dashboard/qml/SettingsPage.qml +++ b/dashboard/qml/SettingsPage.qml @@ -90,7 +90,6 @@ Kirigami.ScrollablePage { Kirigami.FormData.label: i18n("Bitrate:") from: 1 to: 200 - value: config.bitrate textFromValue: (value, locale) => i18nc("bitrate", "%1 Mbit/s", value) valueFromText: function (text, locale) { @@ -366,6 +365,9 @@ Kirigami.ScrollablePage { Component.onCompleted: { openvr_libs.init() config.load(WivrnServer); + // If bitrate was manually set higher, keep the limit + bitrate.to = Math.max(bitrate.to, config.bitrate) + bitrate.value = config.bitrate settings.allowUpdates = true; settings.load(); }