Skip to content

Commit 1420ae8

Browse files
committed
fix nearest version find for c1 editors fixes #183
1 parent 758e4c2 commit 1420ae8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

UnityLauncherPro/UpgradeWindow.xaml.cs

+4
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,12 @@ public UpgradeWindow(string currentVersion, string projectPath, string commandLi
4040
txtCurrentVersion.BorderThickness = new Thickness(1);
4141
}
4242

43+
// remove china c1 from version
44+
if (currentVersion.Contains('c')) currentVersion= currentVersion.Replace("c1", "");
45+
4346
// find nearest version
4447
string nearestVersion = Tools.FindNearestVersion(currentVersion, MainWindow.unityInstalledVersions.Keys.ToList());
48+
4549
if (nearestVersion != null)
4650
{
4751
// select nearest version

0 commit comments

Comments
 (0)