we don't want

This commit is contained in:
KingKDot
2026-07-30 15:47:37 -05:00
parent 171bd55148
commit ba9cdc85ee
2 changed files with 10 additions and 4 deletions
+5 -2
View File
@@ -184,8 +184,6 @@ import { createSharedUiSettingsSaver, loadSharedUiSettings } from "./shared-ui-s
setSelectValue(targetFpsSelect, settings.targetFps); setSelectValue(targetFpsSelect, settings.targetFps);
setSelectValue(webrtcMode, "off"); setSelectValue(webrtcMode, "off");
if (qualitySlider && settings.quality !== undefined) qualitySlider.value = String(settings.quality); if (qualitySlider && settings.quality !== undefined) qualitySlider.value = String(settings.quality);
if (mouseCtrl && typeof settings.mouse === "boolean") mouseCtrl.checked = settings.mouse;
if (kbdCtrl && typeof settings.keyboard === "boolean") kbdCtrl.checked = settings.keyboard;
if (clipboardSyncCtrl && typeof settings.clipboardSync === "boolean") clipboardSyncCtrl.checked = settings.clipboardSync; if (clipboardSyncCtrl && typeof settings.clipboardSync === "boolean") clipboardSyncCtrl.checked = settings.clipboardSync;
if (uiaCtrl && typeof settings.uia === "boolean") uiaCtrl.checked = settings.uia; if (uiaCtrl && typeof settings.uia === "boolean") uiaCtrl.checked = settings.uia;
prefersH264 = false; prefersH264 = false;
@@ -220,6 +218,11 @@ import { createSharedUiSettingsSaver, loadSharedUiSettings } from "./shared-ui-s
} }
applySharedSettings(await loadSharedUiSettings("backstage")); applySharedSettings(await loadSharedUiSettings("backstage"));
// Interactive input is intentionally session-scoped: opening any client's
// page must require the operator to opt in again, regardless of saved UI
// settings.
if (mouseCtrl) mouseCtrl.checked = false;
if (kbdCtrl) kbdCtrl.checked = false;
const sharedSettingsSaver = createSharedUiSettingsSaver("backstage", readSharedSettings); const sharedSettingsSaver = createSharedUiSettingsSaver("backstage", readSharedSettings);
if (codecH264) { if (codecH264) {
@@ -496,8 +496,6 @@ import { createSharedUiSettingsSaver, loadSharedUiSettings } from "./shared-ui-s
smoothingSlider.value = String(settings.smoothing); smoothingSlider.value = String(settings.smoothing);
smoothingPct = Number(smoothingSlider.value) || 0; smoothingPct = Number(smoothingSlider.value) || 0;
} }
if (mouseCtrl && typeof settings.mouse === "boolean") mouseCtrl.checked = settings.mouse;
if (kbdCtrl && typeof settings.keyboard === "boolean") kbdCtrl.checked = settings.keyboard;
if (cursorCtrl && typeof settings.cursor === "boolean") cursorCtrl.checked = settings.cursor; if (cursorCtrl && typeof settings.cursor === "boolean") cursorCtrl.checked = settings.cursor;
if (hideLocalCursorCtrl && typeof settings.hideLocalCursor === "boolean") hideLocalCursorCtrl.checked = settings.hideLocalCursor; if (hideLocalCursorCtrl && typeof settings.hideLocalCursor === "boolean") hideLocalCursorCtrl.checked = settings.hideLocalCursor;
if (duplicationCtrl && typeof settings.duplication === "boolean") duplicationCtrl.checked = settings.duplication; if (duplicationCtrl && typeof settings.duplication === "boolean") duplicationCtrl.checked = settings.duplication;
@@ -541,6 +539,11 @@ import { createSharedUiSettingsSaver, loadSharedUiSettings } from "./shared-ui-s
} }
applySharedSettings(await loadSharedUiSettings("remote_desktop")); applySharedSettings(await loadSharedUiSettings("remote_desktop"));
// Interactive input is intentionally session-scoped: opening any client's
// page must require the operator to opt in again, regardless of saved UI
// settings. Cursor capture remains a separate persisted preference.
if (mouseCtrl) mouseCtrl.checked = false;
if (kbdCtrl) kbdCtrl.checked = false;
const sharedSettingsSaver = createSharedUiSettingsSaver("remote_desktop", readSharedSettings); const sharedSettingsSaver = createSharedUiSettingsSaver("remote_desktop", readSharedSettings);
if (codecH264) { if (codecH264) {