mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-05 19:45:45 +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.
|
* windows could be closed individually.
|
||||||
*/
|
*/
|
||||||
quit: function (saveSession, force) {
|
quit: function (saveSession, force) {
|
||||||
if (!force && !canQuitApplication())
|
if (!force &&
|
||||||
|
prefs.withContext(function () {
|
||||||
|
prefs.set("browser.warnOnQuit", false);
|
||||||
|
return !canQuitApplication();
|
||||||
|
}))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let pref = "browser.startup.page";
|
let pref = "browser.startup.page";
|
||||||
|
|||||||
Reference in New Issue
Block a user