From 4a849475aa3e52d6c9c59cc11dd650da871c2837 Mon Sep 17 00:00:00 2001 From: JackTheRooster Date: Tue, 25 Feb 2025 21:38:19 -0600 Subject: [PATCH] moved usb settings to hardware setting --- ui/src/components/sidebar/settings.tsx | 72 +++++++++++++------------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/ui/src/components/sidebar/settings.tsx b/ui/src/components/sidebar/settings.tsx index 54ae80f..2200527 100644 --- a/ui/src/components/sidebar/settings.tsx +++ b/ui/src/components/sidebar/settings.tsx @@ -1021,6 +1021,41 @@ export default function SettingsSidebar() {

The display will wake up when the connection state changes, or when touched.

+ + { + if (e.target.value === "custom") { + setUsbConfigProduct(e.target.value); + } else { + handleUsbConfigChange(e.target.value as string); + } + }} + options={[...usbConfigs, { value: "custom", label: "Custom" }]} + /> + + {usbConfigProduct === "custom" && ( + +