1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 22:22:27 +01:00

move Quit event triggering to liberator.shutdown()

This commit is contained in:
Doug Kearns
2008-08-28 06:47:04 +00:00
parent 14fca7b099
commit bd9c55742b

View File

@@ -888,8 +888,6 @@ const liberator = (function () //{{{
// quit liberator, no matter how many tabs/windows are open
quit: function (saveSession)
{
liberator.autocommands.trigger("Quit", "");
if (saveSession)
liberator.options.setPref("browser.startup.page", 3); // start with saved session
else
@@ -913,8 +911,6 @@ const liberator = (function () //{{{
if (cancelQuit.data)
return;
liberator.autocommands.trigger("Quit", "");
// notify all windows that an application quit has been granted.
os.notifyObservers(null, "quit-application-granted", null);
@@ -1038,6 +1034,8 @@ const liberator = (function () //{{{
liberator.quickmarks.destroy();
window.dump("All liberator modules destroyed\n");
liberator.autocommands.trigger("Quit", "");
},
sleep: function (ms)