From a7ac4b5b1a4ee4d6a328b09f055ce5ca5abb646a Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Thu, 22 Jun 2017 16:16:17 -0700 Subject: [PATCH] More alert suppression changes --- modules/pcx86/lib/computer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/pcx86/lib/computer.js b/modules/pcx86/lib/computer.js index 85bff0728..e8e99b6ce 100644 --- a/modules/pcx86/lib/computer.js +++ b/modules/pcx86/lib/computer.js @@ -1360,7 +1360,7 @@ class Computer extends Component { * I used to bypass the prompt if this.resume == Computer.RESUME_AUTO, setting fSave to true automatically, * but that gives the user no means of resetting a resumable machine that contains errors in its resume state. */ - var fSave = (/* this.resume == Computer.RESUME_AUTO || */ Component.confirmUser("Click OK to save changes to this " + PCX86.APPNAME + " machine.\n\nWARNING: If you CANCEL, all disk changes will be discarded.")); + var fSave = (/* this.resume == Computer.RESUME_AUTO || */ this.flags.unloading || Component.confirmUser("Click OK to save changes to this " + PCX86.APPNAME + " machine.\n\nWARNING: If you CANCEL, all disk changes will be discarded.")); this.powerOff(fSave, true); /* * Forcing the page to reload is an expedient option, but ugly. It's preferable to call powerOn()