Fixing auto update

pull/28/head v3.2.2
aandrew-me 3 years ago
parent eab8269491
commit c2c15eccb9

@ -100,8 +100,8 @@ autoUpdater.on("update-available", (_event, releaseNotes, releaseName) => {
detail: process.platform === "win32" ? releaseNotes : releaseName,
message: "A new version is available, do you want to update?",
};
dialog.showMessageBox(dialogOpts, (buttonIndex) => {
if (buttonIndex === 0) {
dialog.showMessageBox(dialogOpts).then((returnValue) =>{
if (returnValue.response === 0) {
autoUpdater.downloadUpdate();
}
});

@ -5,7 +5,7 @@
"yt-dlp-wrap-extended": "^2.3.12"
},
"name": "ytdownloader",
"version": "3.2.1",
"version": "3.2.2",
"main": "main.js",
"scripts": {
"start": "electron .",

Loading…
Cancel
Save