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 :)

+ + + +
diff --git a/renderer/pages/index.tsx b/renderer/pages/index.tsx index 1020842..9e1f9f9 100644 --- a/renderer/pages/index.tsx +++ b/renderer/pages/index.tsx @@ -29,7 +29,7 @@ const Home = () => { const [doubleUpscaylCounter, setDoubleUpscaylCounter] = useState(0); const [gpuId, setGpuId] = useState(""); const [saveImageAs, setSaveImageAs] = useState("png"); - const [zoomAmount, setZoomAmount] = useState("200%"); + const [zoomAmount, setZoomAmount] = useState("100%"); const [backgroundPosition, setBackgroundPosition] = useState("0% 0%"); const [dimensions, setDimensions] = useState({ width: null,