1
0
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:
Kris Maglione
2008-09-11 02:29:57 +00:00
parent 716ee80452
commit 56155a6032
6 changed files with 298 additions and 109 deletions

View File

@@ -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);