diff --git a/.changeset/quick-forks-try.md b/.changeset/quick-forks-try.md new file mode 100644 index 000000000..6cc279262 --- /dev/null +++ b/.changeset/quick-forks-try.md @@ -0,0 +1,6 @@ +--- +'hostd': minor +'walletd': minor +--- + +App preferences no longer list unused GPU setting. diff --git a/apps/renterd/contexts/dialog.tsx b/apps/renterd/contexts/dialog.tsx index c2c482e5e..e954fe524 100644 --- a/apps/renterd/contexts/dialog.tsx +++ b/apps/renterd/contexts/dialog.tsx @@ -137,6 +137,7 @@ export function Dialogs() { void securityEl?: React.ReactNode + showGpuSetting?: boolean } -export function SettingsDialog({ open, onOpenChange, securityEl }: Props) { +export function SettingsDialog({ + open, + onOpenChange, + securityEl, + showGpuSetting, +}: Props) { const { settings, setSettings, gpu } = useAppSettings() return ( @@ -96,30 +102,32 @@ export function SettingsDialog({ open, onOpenChange, securityEl }: Props) { - -
-
- - - - - GPU - - + {showGpuSetting && ( + +
+
+ + + + + GPU + + +
+ + Enable features that require a GPU.{' '} + {gpu.canGpuRender + ? '' + : 'This device does not support GPU rendering.'} +
- - Enable features that require a GPU.{' '} - {gpu.canGpuRender - ? '' - : 'This device does not support GPU rendering.'} - -
- + + )}