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

made initial setting of gui options faster

This commit is contained in:
Martin Stubenschrott
2007-10-22 12:41:14 +00:00
parent 93bd4513cb
commit 265f7e042f
4 changed files with 54 additions and 12 deletions

View File

@@ -645,11 +645,9 @@ const vimperator = (function() //{{{
vimperator.log("No user RC file found", 3);
// also source plugins in ~/.vimperator/plugin/
var entries = [];
try
{
var plugin_dir = vimperator.io.getPluginDir();
if (plugin_dir)
{
var files = vimperator.io.readDirectory(plugin_dir.path);
@@ -669,6 +667,11 @@ const vimperator = (function() //{{{
// thrown if directory does not exist
//vimperator.log("Error sourcing plugin directory: " + e);
}
// after sourcing the initialization files, this function will set
// all gui options to their default values, if they have not been
// set before by any rc file
vimperator.options.setInitialGUI();
}, 0);
vimperator.statusline.update();