Skip to content

Commit

Permalink
v2.7.3
Browse files Browse the repository at this point in the history
Fix issue with map release not being selected on MY20 Protection
  • Loading branch information
Fma965 committed Jun 1, 2021
1 parent f64020e commit 2df3db1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Launcher/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.7.2.0")]
[assembly: AssemblyFileVersion("2.7.2.0")]
[assembly: AssemblyVersion("2.7.3.0")]
[assembly: AssemblyFileVersion("2.7.3.0")]
4 changes: 2 additions & 2 deletions Syn3Updater/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@
// You can specify all the values or you can default the Build a nd Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.7.2.0")]
[assembly: AssemblyFileVersion("2.7.2.0")]
[assembly: AssemblyVersion("2.7.3.0")]
[assembly: AssemblyFileVersion("2.7.3.0")]
21 changes: 11 additions & 10 deletions Syn3Updater/UI/Tabs/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,16 +513,6 @@ private async Task UpdateSelectedRelease()
{
SelectedMapVersion = null;
IvsuList?.Clear();
if (SelectedRelease == LM.GetValue("String.OnlyMaps") || AppMan.App.Settings.My20)
{
_apiMapReleases = _apiMapReleases.Replace("[compat]", "3.4");
_apiMapReleases = _apiMapReleases.Replace("[esn]", "{\"esn\": {\"_eq\": \"false\"}},");
}
else
{
_apiMapReleases = _apiMapReleases.Replace("[compat]", _stringCompatibility);
_apiMapReleases = _apiMapReleases.Replace("[esn]", "");
}

foreach (Api.Data item in _jsonReleases.Releases)
if (item.Name == SelectedRelease)
Expand All @@ -538,6 +528,17 @@ private async Task UpdateSelectedRelease()
Notes = item.Notes.Replace("\n", Environment.NewLine);
}

if (SelectedRelease == LM.GetValue("String.OnlyMaps") || AppMan.App.Settings.My20)
{
_apiMapReleases = _apiMapReleases.Replace("[compat]", "3.4");
_apiMapReleases = _apiMapReleases.Replace("[esn]", "{\"esn\": {\"_eq\": \"false\"}},");
}
else
{
_apiMapReleases = _apiMapReleases.Replace("[compat]", _stringCompatibility);
_apiMapReleases = _apiMapReleases.Replace("[esn]", "");
}

_apiMapReleases = _apiMapReleases.Replace("[regionplaceholder]", SelectedRegion.Code);

HttpResponseMessage response = await AppMan.App.Client.GetAsync(_apiMapReleases);
Expand Down

0 comments on commit 2df3db1

Please sign in to comment.