mirror of
https://github.com/upscayl/upscayl.git
synced 2025-02-28 15:50:24 +01:00
Fix settings and update version
This commit is contained in:
parent
dd0583c93b
commit
c9e00de2b0
13
package-lock.json
generated
13
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "upscayl",
|
||||
"version": "2.10.0",
|
||||
"version": "2.15.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "upscayl",
|
||||
"version": "2.10.0",
|
||||
"version": "2.15.0",
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {
|
||||
"@radix-ui/react-dialog": "^1.0.5",
|
||||
@ -3724,9 +3724,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/caniuse-lite": {
|
||||
"version": "1.0.30001579",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001579.tgz",
|
||||
"integrity": "sha512-u5AUVkixruKHJjw/pj9wISlcMpgFWzSrczLZbrqBSxukQixmg0SJ5sZTpvaFvxU0HoQKd4yoyAogyrAz9pzJnA==",
|
||||
"version": "1.0.30001688",
|
||||
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001688.tgz",
|
||||
"integrity": "sha512-Nmqpru91cuABu/DTCXbM2NSRHzM2uVHfPnhJ/1zEAJx/ILBRVmz3pzH4N7DZqbdG0gWClsCC05Oj0mJ/1AWMbA==",
|
||||
"dev": true,
|
||||
"funding": [
|
||||
{
|
||||
@ -3741,7 +3741,8 @@
|
||||
"type": "github",
|
||||
"url": "https://github.com/sponsors/ai"
|
||||
}
|
||||
]
|
||||
],
|
||||
"license": "CC-BY-4.0"
|
||||
},
|
||||
"node_modules/ccount": {
|
||||
"version": "2.0.1",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "upscayl",
|
||||
"private": true,
|
||||
"version": "2.10.0",
|
||||
"version": "2.15.0",
|
||||
"productName": "Upscayl",
|
||||
"author": {
|
||||
"name": "Nayam Amarshe",
|
||||
|
@ -2,7 +2,7 @@ import { translationAtom } from "@/atoms/translations-atom";
|
||||
import { enableContributionAtom } from "@/atoms/user-settings-atom";
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
|
||||
const AutoUpdateToggle = () => {
|
||||
const EnableContributionToggle = () => {
|
||||
const [enableContribution, setEnableContribution] = useAtom(
|
||||
enableContributionAtom,
|
||||
);
|
||||
@ -28,4 +28,4 @@ const AutoUpdateToggle = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default AutoUpdateToggle;
|
||||
export default EnableContributionToggle;
|
||||
|
@ -6,12 +6,9 @@ import { LogArea } from "./log-area";
|
||||
import { SelectImageScale } from "./select-image-scale";
|
||||
import { SelectImageFormat } from "./select-image-format";
|
||||
import { DonateButton } from "./donate-button";
|
||||
import React, { useEffect, useState } from "react";
|
||||
import { themeChange } from "theme-change";
|
||||
import React, { useState } from "react";
|
||||
import { useAtom, useAtomValue } from "jotai";
|
||||
import { customModelsPathAtom, scaleAtom } from "@/atoms/user-settings-atom";
|
||||
import { customModelIdsAtom } from "@/atoms/models-list-atom";
|
||||
import useLogger from "@/components/hooks/use-logger";
|
||||
import { InputCompression } from "./input-compression";
|
||||
import OverwriteToggle from "./overwrite-toggle";
|
||||
import { UpscaylCloudModal } from "@/components/upscayl-cloud-modal";
|
||||
@ -24,6 +21,8 @@ import { InputTileSize } from "./input-tile-size";
|
||||
import LanguageSwitcher from "./language-switcher";
|
||||
import { translationAtom } from "@/atoms/translations-atom";
|
||||
import { ImageFormat } from "@/lib/valid-formats";
|
||||
import EnableContributionToggle from "./enable-contributions-toggle";
|
||||
import AutoUpdateToggle from "./auto-update-toggle";
|
||||
|
||||
interface IProps {
|
||||
batchMode: boolean;
|
||||
@ -173,6 +172,8 @@ function SettingsTab({
|
||||
|
||||
<OverwriteToggle />
|
||||
<TurnOffNotificationsToggle />
|
||||
<AutoUpdateToggle />
|
||||
<EnableContributionToggle />
|
||||
|
||||
{/* GPU ID INPUT */}
|
||||
<InputGpuId gpuId={gpuId} handleGpuIdChange={handleGpuIdChange} />
|
||||
|
Loading…
x
Reference in New Issue
Block a user