Add browse more plugin and theme link to setting dialog.

This commit is contained in:
qianlifeng
2014-07-16 20:17:51 +08:00
parent 088c3984d8
commit 5c373f0d25
12 changed files with 117 additions and 112 deletions

View File

@@ -13,17 +13,12 @@ namespace Wox.Converters
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
if (value == null || value == DependencyProperty.UnsetValue) return null;
string fullPath = value.ToString();
if (fullPath.StartsWith("data:", StringComparison.OrdinalIgnoreCase))
if (value == null || value == DependencyProperty.UnsetValue)
{
return new BitmapImage(new Uri(fullPath));
return null;
}
return ImageLoader.Load(fullPath);
return ImageLoader.Load(value.ToString());
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)