mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 23:03:12 +02:00
changes to alert wording for quit confirm
This commit is contained in:
parent
0e78358a85
commit
21074fe4e4
1 changed files with 12 additions and 6 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue