1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-01-19 01:24:09 +01:00

fixed output toggle functionality

This commit is contained in:
TGS963 2023-04-27 23:59:42 +05:30
parent 6673c4f08e
commit db49f1505a

View File

@ -228,7 +228,8 @@ ipcMain.handle(commands.SELECT_FOLDER, async (event, message) => {
: folderPaths[0];
mainWindow.webContents
.executeJavaScript('localStorage.getItem("rememberOutputFolder");', true)
.then(() => {
.then((result) => {
if (result === "false") return;
mainWindow.webContents
.executeJavaScript(
`localStorage.setItem("lastFolderPath", "${folderPath}");`,