fix: download button not working

This commit is contained in:
JellyBrick
2024-01-05 21:04:39 +09:00
parent 25d266f8f9
commit 59c521e53f

View File

@ -687,13 +687,15 @@ app.whenReady().then(async () => {
const dialogOptions: Electron.MessageBoxOptions = {
type: 'info',
buttons: [
t('main.dialog.update-available.buttons.download'),
t('main.dialog.update-available.buttons.ok'),
t('main.dialog.update-available.buttons.download'),
t('main.dialog.update-available.buttons.disable'),
],
title: t('main.dialog.update-available.title'),
message: t('main.dialog.update-available.message'),
detail: t('main.dialog.update-available.detail', { downloadLink }),
defaultId: 1,
cancelId: 0,
};
let dialogPromise: Promise<Electron.MessageBoxReturnValue>;
@ -717,7 +719,7 @@ app.whenReady().then(async () => {
break;
}
default: {
case 0: {
break;
}
}