diff --git a/constants/models.js b/constants/models.js deleted file mode 100644 index e69de29..0000000 diff --git a/main/index.js b/main/index.js index 1d240c9..a181c93 100644 --- a/main/index.js +++ b/main/index.js @@ -29,10 +29,11 @@ app.on("ready", async () => { mainWindow = new BrowserWindow({ width: 1100, - height: 700, + height: 850, minHeight: 500, minWidth: 500, webPreferences: { + devTools: isDev, autoHideMenuBar: true, nodeIntegration: true, webSecurity: false, @@ -58,7 +59,7 @@ app.on("ready", async () => { if (!isDev) { autoUpdater.checkForUpdates(); - }; + } }); // Quit the app once all windows are closed @@ -154,26 +155,25 @@ ipcMain.on(commands.UPSCAYL, async (event, payload) => { autoUpdater.on("update-available", (_event, releaseNotes, releaseName) => { const dialogOpts = { - type: 'info', - buttons: ['Ok'], - title: 'Application Update', - message: process.platform === 'win32' ? releaseNotes : releaseName, - detail: 'A new version is being downloaded.' - } - dialog.showMessageBox(dialogOpts, (response) => { - - }); -}) + type: "info", + buttons: ["Ok"], + title: "Application Update", + message: process.platform === "win32" ? releaseNotes : releaseName, + detail: "A new version is being downloaded.", + }; + dialog.showMessageBox(dialogOpts, (response) => {}); +}); autoUpdater.on("update-downloaded", (_event, releaseNotes, releaseName) => { const dialogOpts = { - type: 'info', - buttons: ['Restart', 'Later'], - title: 'Application Update', - message: process.platform === 'win32' ? releaseNotes : releaseName, - detail: 'A new version has been downloaded. Restart the application to apply the updates.' + type: "info", + buttons: ["Restart", "Later"], + title: "Application Update", + message: process.platform === "win32" ? releaseNotes : releaseName, + detail: + "A new version has been downloaded. Restart the application to apply the updates.", }; dialog.showMessageBox(dialogOpts).then((returnValue) => { - if (returnValue.response === 0) autoUpdater.quitAndInstall() - }) + if (returnValue.response === 0) autoUpdater.quitAndInstall(); + }); }); diff --git a/package.json b/package.json index 39df674..63f235b 100644 --- a/package.json +++ b/package.json @@ -48,9 +48,6 @@ "**/node_modules/sharp/**" ] }, - "snap": { - "confinement": "classic" - }, "files": [ "main", "renderer/out" diff --git a/renderer/pages/index.jsx b/renderer/pages/index.jsx index 407857f..ee55a7d 100644 --- a/renderer/pages/index.jsx +++ b/renderer/pages/index.jsx @@ -43,14 +43,9 @@ const Home = () => { } }; - const handleCheck = (e) => { - if (e.target.checked) { - setModel("realesrgan-x4plus-anime") - } - else { - setModel("realesrgan-x4plus") - } - } + const handleModelChange = (e) => { + setModel(e.target.value); + }; const outputHandler = async () => { var path = await window.electron.invoke(commands.SELECT_FOLDER); @@ -71,10 +66,6 @@ const Home = () => { }); }; - useEffect(() => { - console.log(progress); - }, [progress]); - return (
Step 2
++ Select Upscaling Type +
+ +Step 3
Select Scale Factor
Step 3
+Step 4
Defaults to Image's path
@@ -145,9 +150,9 @@ const Home = () => {Step 4
+Step 5