changes to alert wording for quit confirm

This commit is contained in:
Stephen Birarda 2016-01-18 11:28:14 -08:00
parent 0e78358a85
commit 21074fe4e4

View file

@ -63,12 +63,18 @@ const ipcMain = electron.ipcMain;
var isShuttingDown = false; var isShuttingDown = false;
function shutdown() { function shutdown() {
if (!isShuttingDown) { if (!isShuttingDown) {
var idx = dialog.showMessageBox({ var idx = 0;
type: 'question',
buttons: ['Yes', 'No'], // if the home server is running, show a prompt before quit to ask if the user is sure
title: 'High Fidelity', if (homeServer.state == ProcessGroupStates.STARTED) {
message: 'Are you sure you want to quit?' idx = dialog.showMessageBox({
}); type: 'question',
buttons: ['Yes', 'No'],
title: 'Are you sure?',
message: 'Quitting will stop your Server Console and your Home domain will no longer be running.'
});
}
if (idx == 0) { if (idx == 0) {
isShuttingDown = true; isShuttingDown = true;