mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 18:32:25 +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 liberator, no matter how many tabs/windows are open
|
||||||
quit: function (saveSession)
|
quit: function (saveSession)
|
||||||
{
|
{
|
||||||
liberator.autocommands.trigger("Quit", "");
|
|
||||||
|
|
||||||
if (saveSession)
|
if (saveSession)
|
||||||
liberator.options.setPref("browser.startup.page", 3); // start with saved session
|
liberator.options.setPref("browser.startup.page", 3); // start with saved session
|
||||||
else
|
else
|
||||||
@@ -913,8 +911,6 @@ const liberator = (function () //{{{
|
|||||||
if (cancelQuit.data)
|
if (cancelQuit.data)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
liberator.autocommands.trigger("Quit", "");
|
|
||||||
|
|
||||||
// notify all windows that an application quit has been granted.
|
// notify all windows that an application quit has been granted.
|
||||||
os.notifyObservers(null, "quit-application-granted", null);
|
os.notifyObservers(null, "quit-application-granted", null);
|
||||||
|
|
||||||
@@ -1038,6 +1034,8 @@ const liberator = (function () //{{{
|
|||||||
liberator.quickmarks.destroy();
|
liberator.quickmarks.destroy();
|
||||||
|
|
||||||
window.dump("All liberator modules destroyed\n");
|
window.dump("All liberator modules destroyed\n");
|
||||||
|
|
||||||
|
liberator.autocommands.trigger("Quit", "");
|
||||||
},
|
},
|
||||||
|
|
||||||
sleep: function (ms)
|
sleep: function (ms)
|
||||||
|
|||||||
Reference in New Issue
Block a user