fix: hide Vulkan option for users who don't have GPU

This commit is contained in:
Louis 2024-12-05 10:12:17 +07:00
parent 38ff118276
commit 7e28939a0c
No known key found for this signature in database
GPG Key ID: 44FA9F4D33C37DE2

View File

@ -436,7 +436,7 @@ const Advanced = () => {
)}
{/* Vulkan for AMD GPU/ APU and Intel Arc GPU */}
{!isMac && experimentalEnabled && (
{!isMac && gpuList.length && experimentalEnabled && (
<div className="flex w-full flex-col items-start justify-between gap-4 border-b border-[hsla(var(--app-border))] py-4 first:pt-0 last:border-none sm:flex-row">
<div className="space-y-1">
<div className="flex gap-x-2">