Skip to content

Commit 4b2a38a

Browse files
committed
fix release notes url link for 2021 and later (fixes #31), #build
1 parent 7c53066 commit 4b2a38a

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

Diff for: UnityLauncherPro/GetUnityInstallations.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static UnityInstallation[] Scan()
5050
unity.Installed = installDate;
5151
unity.IsPreferred = (version == MainWindow.preferredVersion);
5252

53-
// TEST get platforms, NOTE if this is slow, do it later, or skip for commandline
53+
// get platforms, NOTE if this is slow, do it later, or skip for commandline
5454
var platforms = GetPlatforms(dataFolder);
5555
if (platforms != null) unity.Platforms = string.Join(", ", platforms);
5656

Diff for: UnityLauncherPro/MainWindow.xaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@
339339
<!--TODO platform as dropdown?-->
340340
<DataGridTextColumn CellStyle="{StaticResource NoFocusCellStyle}" Binding="{Binding TargetPlatform}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>
341341
<!--<DataGridComboBoxColumn x:Name="cmbPlatform" CellStyle="{StaticResource NoFocusCellStyle}" SelectedItemBinding="{Binding TargetPlatform, NotifyOnSourceUpdated=True, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>-->
342-
<!--<DataGridComboBoxColumn x:Name="cmbPlatform" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>-->
342+
<DataGridComboBoxColumn x:Name="cmbPlatform" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>
343343
</DataGrid.Columns>
344344

345345
<!-- right click context menu -->
@@ -357,7 +357,7 @@
357357
</DataGrid.ContextMenu>
358358

359359
<!-- sample data for testing -->
360-
<local:Project GITBranch="" Modified="" Title="M dfgh dfghMO" Path="A:/temp" Version="2099.1.2.3"/>
360+
<local:Project TargetPlatform="C64" GITBranch="Best" Modified="" Title="M dfgh dfghMO" Path="A:/temp" Version="2099.1.2.3" />
361361
<local:Project GITBranch="" Modified="" Title="asdgdfg" Path="A:/temp" Version="5.6.7f1"/>
362362
<local:Project GITBranch="" Modified="" Title="Mghdfghdf dfghdfgMO" Path="A:/temp" Version="2018.3.13f1"/>
363363
<local:Project GITBranch="" Modified="" Title="MMO" Path="A:/temp" Version="2099.1.2.3"/>

Diff for: UnityLauncherPro/MainWindow.xaml.cs

-4
Original file line numberDiff line numberDiff line change
@@ -1803,7 +1803,6 @@ private void TxtCustomThemeFile_LostFocus(object sender, RoutedEventArgs e)
18031803
{
18041804
var s = (TextBox)sender;
18051805
themefile = s.Text;
1806-
18071806
Properties.Settings.Default.themeFile = themefile;
18081807
Properties.Settings.Default.Save();
18091808
}
@@ -1813,12 +1812,9 @@ private void TxtCustomThemeFile_PreviewKeyDown(object sender, KeyEventArgs e)
18131812
switch (e.Key)
18141813
{
18151814
case Key.Return: // pressed enter in theme file text box
1816-
Console.WriteLine(txtCustomThemeFile.Text);
18171815
themefile = txtCustomThemeFile.Text;
1818-
18191816
Properties.Settings.Default.themeFile = themefile;
18201817
Properties.Settings.Default.Save();
1821-
18221818
btnReloadTheme.Focus();
18231819
break;
18241820
}

Diff for: UnityLauncherPro/Tools.cs

+12-2
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,21 @@ public static string GetUnityReleaseURL(string version)
328328
if (version.Contains("2017.1")) whatsnew = "whatsnew";
329329
if (version.Contains("2018.2")) whatsnew = "whatsnew";
330330
if (version.Contains("2018.3")) padding = "";
331-
if (version.Contains("2018.1")) whatsnew = "whatsnew"; // doesnt work
332-
if (version.Contains("2017.4.")) padding = ""; // doesnt work for all versions
331+
if (version.Contains("2018.1")) whatsnew = "whatsnew";
332+
if (version.Contains("2017.4.")) padding = "";
333333
if (version.Contains("2018.4.")) padding = "";
334334
if (version.Contains("2019")) padding = "";
335335
if (version.Contains("2020")) padding = "";
336+
if (version.Contains("2021")) padding = "";
337+
if (version.Contains("2022")) padding = "";
338+
if (version.Contains("2023")) padding = "";
339+
if (version.Contains("2024")) padding = "";
340+
if (version.Contains("2025")) padding = "";
341+
if (version.Contains("2026")) padding = "";
342+
if (version.Contains("2027")) padding = "";
343+
if (version.Contains("2028")) padding = "";
344+
if (version.Contains("2029")) padding = "";
345+
if (version.Contains("2030")) padding = "";
336346
url = "https://unity3d.com/unity/" + whatsnew + "/" + padding + version;
337347
}
338348
else

0 commit comments

Comments
 (0)