From 0e5f380efe7520edcfe366efdb1f90b11a34e366 Mon Sep 17 00:00:00 2001 From: Chris Kaczor Date: Sat, 24 May 2014 10:17:31 -0400 Subject: [PATCH] Add option to load images --- Internet/Browser.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Internet/Browser.cs b/Internet/Browser.cs index d77ebd2..dc4fa1d 100644 --- a/Internet/Browser.cs +++ b/Internet/Browser.cs @@ -70,6 +70,11 @@ namespace Common.Internet } public static Dictionary DetectInstalledBrowsers() + { + return DetectInstalledBrowsers(false); + } + + public static Dictionary DetectInstalledBrowsers(bool loadImages) { var browsers = new Dictionary(); @@ -105,6 +110,9 @@ namespace Common.Internet DefaultIcon = browserIconPath == null ? null : (string) browserIconPath.GetValue(null) }; + if (loadImages) + browser.LoadImage(); + browsers.Add(browserName, browser); }