1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 11:15:46 +01:00

Avoid showing a rather silly and irrelevant prompt on :qall/ZQ.

This commit is contained in:
Kris Maglione
2010-12-01 19:58:51 -05:00
parent af3d7bce0e
commit 0bf9cfb0bc

View File

@@ -930,7 +930,11 @@ const Dactyl = Module("dactyl", {
* windows could be closed individually.
*/
quit: function (saveSession, force) {
if (!force && !canQuitApplication())
if (!force &&
prefs.withContext(function () {
prefs.set("browser.warnOnQuit", false);
return !canQuitApplication();
}))
return;
let pref = "browser.startup.page";