mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:42:27 +01:00
move Quit event triggering to liberator.shutdown()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user