Skip to content

Commit

Permalink
fix: Update settings on index only shown if toggle on
Browse files Browse the repository at this point in the history
  • Loading branch information
hiro-v committed Feb 19, 2024
1 parent 62b2875 commit 7a21077
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions web/screens/Settings/Advanced/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,14 @@ const Advanced = () => {
<div className="flex gap-x-2">
<h6 className="text-sm font-semibold capitalize">Vulkan GPU</h6>
</div>
<p className="leading-relaxed">
Enable Vulkan for AMD GPU/ APU and Intel Arc GPU for better model
performance.
<p className="text-xs leading-relaxed">
Enable Vulkan with AMD GPU/APU and Intel Arc GPU for better model
performance. 0 - iGPU, n positive - eGPU
</p>
</div>
<Input value={vulkanEnabled ? 1 : 0} className="w-[60px] pr-8" />
{vulkanEnabled && (
<Input value={vulkanEnabled ? 1 : 0} className="w-[60px] pr-8" />
)}
<Switch checked={vulkanEnabled} onCheckedChange={setVulkanEnabled} />
</div>
)}
Expand Down

0 comments on commit 7a21077

Please sign in to comment.