mirror of
https://github.com/ckaczor/Common.git
synced 2026-01-13 17:22:40 -05:00
Add option to load images
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user