mirror of
https://github.com/upscayl/upscayl.git
synced 2026-04-03 03:00:13 -04:00
Fix auto-update condition and bump build version to 25.12.26; update app version to 2.15.0
This commit is contained in:
@@ -57,7 +57,11 @@ const createMainWindow = () => {
|
||||
mainWindow.webContents
|
||||
.executeJavaScript('localStorage.getItem("autoUpdate");', true)
|
||||
.then((lastSaved: string | null) => {
|
||||
if (lastSaved !== null && lastSaved === "true") {
|
||||
if (
|
||||
lastSaved === null ||
|
||||
lastSaved === undefined ||
|
||||
lastSaved === "true"
|
||||
) {
|
||||
autoUpdater.checkForUpdates();
|
||||
} else {
|
||||
console.log("🚀 Auto Update is disabled");
|
||||
|
||||
Reference in New Issue
Block a user