mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 16:57:57 +01:00
move Options.{setPref,getPref,setFirefoxPref,getFirefoxPref} to slots of vimperator.options
This commit is contained in:
@@ -286,7 +286,7 @@ const vimperator = (function() //{{{
|
||||
// if msg is an object, it is beautified
|
||||
log: function(msg, level)
|
||||
{
|
||||
//if (Options.getPref("verbose") >= level) // FIXME: hangs vimperator, probably timing issue --mst
|
||||
//if (vimperator.options.getPref("verbose") >= level) // FIXME: hangs vimperator, probably timing issue --mst
|
||||
if (typeof msg == "object")
|
||||
msg = this.objectToString(msg, false);
|
||||
|
||||
@@ -366,9 +366,9 @@ const vimperator = (function() //{{{
|
||||
quit: function(save_session)
|
||||
{
|
||||
if (save_session)
|
||||
Options.setFirefoxPref("browser.startup.page", 3); // start with saved session
|
||||
vimperator.options.setFirefoxPref("browser.startup.page", 3); // start with saved session
|
||||
else
|
||||
Options.setFirefoxPref("browser.startup.page", 1); // start with default homepage session
|
||||
vimperator.options.setFirefoxPref("browser.startup.page", 1); // start with default homepage session
|
||||
|
||||
goQuitApplication();
|
||||
},
|
||||
@@ -614,16 +614,16 @@ const vimperator = (function() //{{{
|
||||
vimperator.registerCallback("complete", vimperator.modes.EX, function(str) { return vimperator.completion.exTabCompletion(str); } );
|
||||
|
||||
// first time intro message
|
||||
if (Options.getPref("firsttime", true))
|
||||
if (vimperator.options.getPref("firsttime", true))
|
||||
{
|
||||
setTimeout(function() {
|
||||
vimperator.help(null, null, null, { inTab: true });
|
||||
Options.setPref("firsttime", false);
|
||||
vimperator.options.setPref("firsttime", false);
|
||||
}, 1000);
|
||||
}
|
||||
|
||||
// disable caret browsing initially
|
||||
//Options.setFirefoxPref("accessibility.browsewithcaret", false);
|
||||
//vimperator.options.setFirefoxPref("accessibility.browsewithcaret", false);
|
||||
//vimperator.focusContent();
|
||||
|
||||
// always start in normal mode
|
||||
|
||||
Reference in New Issue
Block a user