Add option to load images

This commit is contained in:
2014-05-24 10:17:31 -04:00
parent 8f8e454b0d
commit 0e5f380efe

View File

@@ -70,6 +70,11 @@ namespace Common.Internet
}
public static Dictionary<string, Browser> DetectInstalledBrowsers()
{
return DetectInstalledBrowsers(false);
}
public static Dictionary<string, Browser> DetectInstalledBrowsers(bool loadImages)
{
var browsers = new Dictionary<string, Browser>();
@@ -105,6 +110,9 @@ namespace Common.Internet
DefaultIcon = browserIconPath == null ? null : (string) browserIconPath.GetValue(null)
};
if (loadImages)
browser.LoadImage();
browsers.Add(browserName, browser);
}