mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-10 21:41:51 +02:00
Add browse more plugin and theme link to setting dialog.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user