Skip to content

Commit f4fa05c

Browse files
committed
fix thumbnail empty size
1 parent 9480979 commit f4fa05c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnityLauncherPro/Converters/ThumbnailConverter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
5757
// Ignore and fall back to UnsetValue for Source, or 64.0 for dimensions
5858
if (parameter != null && (parameter.ToString() == "Width" || parameter.ToString() == "Height"))
5959
{
60-
return 64.0;
60+
return 1.0;
6161
}
6262
return DependencyProperty.UnsetValue;
6363
}
@@ -67,7 +67,7 @@ public object Convert(object value, Type targetType, object parameter, CultureIn
6767
// Project path doesn't exist or no thumbnail found
6868
if (parameter != null && (parameter.ToString() == "Width" || parameter.ToString() == "Height"))
6969
{
70-
return 64.0; // Return default dimension
70+
return 1.0; // Return default dimension
7171
}
7272
return DependencyProperty.UnsetValue;
7373
}

0 commit comments

Comments
 (0)