1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-12 01:40:53 +01:00

Merge pull request #435 from upscayl/suvojit/fix-bugs

Fix bugs before release
This commit is contained in:
NayamAmarshe 2023-09-01 11:56:33 +05:30 committed by GitHub
commit 00128fe4ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,4 @@
"use client"
import { useState, useEffect, useCallback } from "react"; import { useState, useEffect, useCallback } from "react";
import commands from "../../electron/commands"; import commands from "../../electron/commands";
import { ReactCompareSlider } from "react-compare-slider"; import { ReactCompareSlider } from "react-compare-slider";
@ -47,7 +48,7 @@ const Home = () => {
const [modelOptions, setModelOptions] = useAtom(modelsListAtom); const [modelOptions, setModelOptions] = useAtom(modelsListAtom);
const [scale] = useAtom(scaleAtom); const [scale] = useAtom(scaleAtom);
const [showCloudModal, setShowCloudModal] = useState(true); const [showCloudModal, setShowCloudModal] = useState(false);
const { logit } = useLog(); const { logit } = useLog();
@ -169,6 +170,11 @@ const Home = () => {
setModelOptions(uniqueModelOptions); setModelOptions(uniqueModelOptions);
} }
); );
if (!localStorage.getItem("upscaylCloudModalShown")) {
logit("⚙️ upscayl cloud show to true");
localStorage.setItem("upscaylCloudModalShown", "true");
setShowCloudModal(true);
}
}, []); }, []);
useEffect(() => { useEffect(() => {
@ -442,7 +448,7 @@ const Home = () => {
if (typeof window === "undefined") { if (typeof window === "undefined") {
return ( return (
<img <img
src="/icon.png" src="icon.png"
alt="Upscayl icon" alt="Upscayl icon"
className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-36 animate-pulse" className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-36 animate-pulse"
/> />

View File

@ -19,6 +19,7 @@ module.exports = {
}, },
plugins: [require("daisyui"), require("tailwind-scrollbar")], plugins: [require("daisyui"), require("tailwind-scrollbar")],
daisyui: { daisyui: {
darkTheme: 'upscayl',
themes: [ themes: [
{ {
upscayl: { upscayl: {