Added minimize option when rendering

This commit is contained in:
2022-07-06 18:43:37 +02:00
parent a213f06961
commit 2809f2d4e8

View File

@@ -94,15 +94,17 @@ const createWindow = () => {
const response = await dialog.showMessageBox({ const response = await dialog.showMessageBox({
type: 'warning', type: 'warning',
noLink: true, noLink: true,
buttons: ['Cancel', 'Exit'], buttons: ['Cancel','Minimize', 'Exit'],
defaultId: 0, defaultId: 0,
title: 'Close', title: 'Close',
message: 'A video is still being renderd!', message: 'A video is still being renderd!',
detail: detail:
'If you close the application, the progress will be lost!', 'If you close the application, the progress will be lost!',
}); });
if (response.response === 1) { if (response.response === 2) {
app.quit(); app.quit();
} else if (response.response === 1) {
mainWindow.minimize();
} }
}); });