Skip to content

Commit f904726

Browse files
committed
2 parents 052ea6f + 30f7747 commit f904726

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ void FilterRecentProjects()
287287

288288
void FilterUpdates()
289289
{
290-
_filterString = txtSearchBoxUpdates.Text;
290+
_filterString = txtSearchBoxUpdates.Text.Trim();
291291
ICollectionView collection = CollectionViewSource.GetDefaultView(dataGridUpdates.ItemsSource);
292292
if (collection == null) return;
293293

Diff for: UnityLauncherPro/Tools.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,14 @@ internal static string ReadProjectName(string projectPath)
172172
public static string GetFileVersionData(string path)
173173
{
174174
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(path);
175-
var res = fvi.ProductName.Replace("(64-bit)", "").Replace("(32-bit)", "").Replace("Unity", "").Trim();
175+
var ver = fvi.ProductName;
176+
if (string.IsNullOrEmpty(ver) == true)
177+
{
178+
ver = fvi.FileDescription;
179+
if (string.IsNullOrEmpty(ver) == true) return null;
180+
ver = ver.Replace("Installer", "").Trim();
181+
}
182+
var res = ver.Replace("(64-bit)", "").Replace("(32-bit)", "").Replace("Unity", "").Trim();
176183
return res;
177184
}
178185

0 commit comments

Comments
 (0)