mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 11:58:00 +01:00
Add a storage module to persistently store, and share between windows, quickmarks, command/search history, and option values.
This commit is contained in:
@@ -1095,12 +1095,11 @@ const liberator = (function () //{{{
|
||||
{
|
||||
liberator.autocommands.trigger(liberator.config.name + "LeavePre", "");
|
||||
|
||||
liberator.storage.saveAll();
|
||||
|
||||
// save our preferences
|
||||
liberator.commandline.destroy();
|
||||
liberator.options.destroy();
|
||||
liberator.events.destroy();
|
||||
if (liberator.has("quickmarks"))
|
||||
liberator.quickmarks.destroy();
|
||||
if (liberator.has("bookmarks"))
|
||||
liberator.bookmarks.destroy();
|
||||
|
||||
@@ -1167,6 +1166,8 @@ const liberator = (function () //{{{
|
||||
//}}}
|
||||
})(); //}}}
|
||||
|
||||
Components.utils.import("resource://vimperator/storage.jsi", liberator);
|
||||
|
||||
// called when the chrome is fully loaded and before the main window is shown
|
||||
window.addEventListener("load", liberator.startup, false);
|
||||
window.addEventListener("unload", liberator.shutdown, false);
|
||||
|
||||
Reference in New Issue
Block a user