diff --git a/renderer/components/LeftPaneImageSteps.tsx b/renderer/components/LeftPaneImageSteps.tsx index 7f452a1..8b3fbec 100644 --- a/renderer/components/LeftPaneImageSteps.tsx +++ b/renderer/components/LeftPaneImageSteps.tsx @@ -76,6 +76,12 @@ function LeftPaneImageSteps({ } else { setCurrentModel(JSON.parse(localStorage.getItem("model"))); } + + if (!localStorage.getItem("gpuId")) { + localStorage.setItem("gpuId", ""); + } else { + setGpuId(localStorage.getItem("gpuId")); + } }, []); const setExportType = (format: string) => { @@ -89,6 +95,7 @@ function LeftPaneImageSteps({ const handleGpuIdChange = (e) => { setGpuId(e.target.value); + localStorage.setItem("gpuId", e.target.value); }; const customStyles = { @@ -316,6 +323,14 @@ function LeftPaneImageSteps({ onChange={handleGpuIdChange} /> +
If you like what we do :)
+ + + +