Skip to content

Commit 006f300

Browse files
committed
simplified Project.ToString() override (its not needed anywhere, but WPF keeps calling it) #54
1 parent 2c4f6dd commit 006f300

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

UnityLauncherPro/Data/Project.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,18 @@ public class Project : IValueConverter
1717
public string[] TargetPlatforms { set; get; }
1818
public bool folderExists { set; get; }
1919

20+
// WPF keeps calling this method from AppendFormatHelper, GetNameCore..? not sure if need to return something else or default would be faster?
2021
public override string ToString()
2122
{
22-
return $"{Title} {Version} {Path} {Modified} {Arguments} {GITBranch} {TargetPlatform}";
23+
return Path;
2324
}
2425

26+
// for debugging
27+
//public override string ToString()
28+
//{
29+
// return $"{Title} {Version} {Path} {Modified} {Arguments} {GITBranch} {TargetPlatform}";
30+
//}
31+
2532
// change datagrid colors based on value using converter https://stackoverflow.com/a/5551986/5452781
2633
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
2734
{

0 commit comments

Comments
 (0)