π Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
TypeScript aielectronesrgangigapixelgigapixel-imagesimageimage-upscalingtopazupscaleupscalerimageupscayl
Fix localstorage bug
Nayam Amarshef144421999ae
diff --git a/electron/commands/batch-upscayl.ts b/electron/commands/batch-upscayl.tsindex f2f8daf..d85006a 100644--- a/electron/commands/batch-upscayl.ts+++ b/electron/commands/batch-upscayl.ts@@ -3,6 +3,7 @@ import { getMainWindow } from "../main-window";import {childProcesses,customModelsFolderPath,+ fetchLocalStorage,noImageProcessing,saveOutputFolder,setCompression,@@ -31,7 +32,7 @@ const batchUpscayl = async (event, payload: BatchUpscaylPayload) => {const model = payload.model;const gpuId = payload.gpuId;const saveImageAs = payload.saveImageAs as ImageFormat;-+ console.log("PAYLOAD: ", payload);// GET THE IMAGE DIRECTORYlet inputDir = payload.batchFolderPath;// GET THE OUTPUT DIRECTORY@@ -39,7 +40,7 @@ const batchUpscayl = async (event, payload: BatchUpscaylPayload) => {if (saveOutputFolder === true && outputFolderPath) {outputFolderPath = outputFolderPath;}-+ // ! Don't do fetchLocalStorage() again, it causes the values to be resetsetNoImageProcessing(payload.noImageProcessing);setCompression(parseInt(payload.compression));diff --git a/electron/utils/convert-and-scale.ts b/electron/utils/convert-and-scale.tsindex 2eae381..b550116 100644--- a/electron/utils/convert-and-scale.ts+++ b/electron/utils/convert-and-scale.ts@@ -98,7 +98,6 @@ const convertAndScale = async (.toFile(processedImagePath);} catch (error) {logit("β Error converting to: ", saveImageAs, error);- onError(error);}logit("β Done converting to: ", upscaledImagePath);diff --git a/electron/utils/show-notification.ts b/electron/utils/show-notification.tsindex 00e80b8..0723888 100644--- a/electron/utils/show-notification.ts+++ b/electron/utils/show-notification.ts@@ -1,8 +1,7 @@import { Notification } from "electron/main";-import { fetchLocalStorage, turnOffNotifications } from "./config-variables";+import { turnOffNotifications } from "./config-variables";export default function showNotification(title: string, body: string) {- fetchLocalStorage();if (turnOffNotifications) return;new Notification({title,diff --git a/mas.json b/mas.jsonindex 271888c..537f156 100644--- a/mas.json+++ b/mas.json@@ -2,7 +2,7 @@"productName": "Upscayl","appId": "org.upscayl.Upscayl","afterSign": "./notarize.js",- "buildVersion": "24.01.17",+ "buildVersion": "24.01.18","asar": true,"asarUnpack": ["**/node_modules/sharp/**/*", "**/node_modules/@img/**/*"],"extraFiles": [