mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-16 23:02:31 +02:00
Avoid showing a rather silly and irrelevant prompt on :qall/ZQ.
This commit is contained in:
1 parent
af3d7bce0e
commit
0bf9cfb0bc
1 file changed
+5
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user