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:
@@ -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