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

get rid off v.options.{g,s}etFirefoxPref and renamed it to {g,s}etPref. You shouldn't save vimperator specific preferences in the about:config anyway, but store larger things like the history in the SQLITE database.

This commit is contained in:
Martin Stubenschrott
2008-02-05 01:00:15 +00:00
parent 8c100b78ba
commit 2777a8e09c
10 changed files with 77 additions and 94 deletions

View File

@@ -811,7 +811,8 @@ vimperator.QuickMarks = function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{
var qmarks = {};
var savedMarks = vimperator.options.getPref("quickmarks", "").split("\n");
// TODO: move to a storage module
var savedMarks = vimperator.options.getPref("vimperator.extensions.quickmarks", "").split("\n");
// load the saved quickmarks -- TODO: change to sqlite
for (var i = 0; i < savedMarks.length - 1; i += 2)
@@ -907,7 +908,7 @@ vimperator.QuickMarks = function () //{{{
savedQuickMarks += qmarks[i] + "\n";
}
vimperator.options.setPref("quickmarks", savedQuickMarks);
vimperator.options.setPref("vimperator.extensions.quickmarks", savedQuickMarks);
}
};