Added option to quit on closing the window.

This adds a configuration option to quit the app (rather than going to
the tray) when the "close" button is clicked.
This commit is contained in:
Ross Brunton
2019-10-13 20:35:18 +01:00
committed by Akash Nimare
parent 1da6e5d51d
commit eb1be7106b
4 changed files with 25 additions and 2 deletions

View File

@@ -58,6 +58,7 @@ interface SettingsOptions {
};
downloadsPath: string;
showDownloadFolder: boolean;
quitOnClose: boolean;
flashTaskbarOnMessage?: boolean;
dockBouncing?: boolean;
loading?: AnyObject;
@@ -206,7 +207,8 @@ class ServerManagerView {
silent: false
},
downloadsPath: `${app.getPath('downloads')}`,
showDownloadFolder: false
showDownloadFolder: false,
quitOnClose: false
};
// Platform specific settings