From 21074fe4e4ff95c6a5e1bdb662646a9ca2398700 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Mon, 18 Jan 2016 11:28:14 -0800 Subject: [PATCH] changes to alert wording for quit confirm --- console/src/main.js | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/console/src/main.js b/console/src/main.js index dac37894f9..8cedefaf89 100644 --- a/console/src/main.js +++ b/console/src/main.js @@ -63,12 +63,18 @@ const ipcMain = electron.ipcMain; var isShuttingDown = false; function shutdown() { if (!isShuttingDown) { - var idx = dialog.showMessageBox({ - type: 'question', - buttons: ['Yes', 'No'], - title: 'High Fidelity', - message: 'Are you sure you want to quit?' - }); + var idx = 0; + + // if the home server is running, show a prompt before quit to ask if the user is sure + if (homeServer.state == ProcessGroupStates.STARTED) { + 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) { isShuttingDown = true;