mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 01:51:15 +01:00
Added minimize option when rendering
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user