mirror of
https://github.com/LinoSchmidt/StickExporterTX.git
synced 2026-03-21 10:00:47 +01:00
Added minimize option when rendering
This commit is contained in:
@@ -94,15 +94,17 @@ const createWindow = () => {
|
||||
const response = await dialog.showMessageBox({
|
||||
type: 'warning',
|
||||
noLink: true,
|
||||
buttons: ['Cancel', 'Exit'],
|
||||
buttons: ['Cancel','Minimize', 'Exit'],
|
||||
defaultId: 0,
|
||||
title: 'Close',
|
||||
message: 'A video is still being renderd!',
|
||||
detail:
|
||||
'If you close the application, the progress will be lost!',
|
||||
});
|
||||
if (response.response === 1) {
|
||||
if (response.response === 2) {
|
||||
app.quit();
|
||||
} else if (response.response === 1) {
|
||||
mainWindow.minimize();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user