1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-24 07:30:19 +01:00

fixed theme and upscayl cloud modal bugs

This commit is contained in:
TGS963 2023-08-31 23:52:58 +05:30
parent 45324c9fc1
commit 9c71552d7a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,4 @@
"use client"
import { useState, useEffect, useCallback } from "react";
import commands from "../../electron/commands";
import { ReactCompareSlider } from "react-compare-slider";
@ -47,7 +48,7 @@ const Home = () => {
const [modelOptions, setModelOptions] = useAtom(modelsListAtom);
const [scale] = useAtom(scaleAtom);
const [showCloudModal, setShowCloudModal] = useState(true);
const [showCloudModal, setShowCloudModal] = useState(false);
const { logit } = useLog();
@ -169,6 +170,11 @@ const Home = () => {
setModelOptions(uniqueModelOptions);
}
);
if (!localStorage.getItem("upscaylCloudModalShown")) {
logit("⚙️ upscayl cloud show to true");
localStorage.setItem("upscaylCloudModalShown", "true");
setShowCloudModal(true);
}
}, []);
useEffect(() => {

View File

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