Alpha/Beta version match bug.

This commit is contained in:
jliddev
2020-09-21 23:34:30 -05:00
parent 61c9500de4
commit 0fa3fc9e19
3 changed files with 13 additions and 4 deletions

View File

@@ -1,5 +1,9 @@
{
"ChangeLogs": [
"ChangeLogs": [
{
"Version": "1.16.2",
"Description": "Fix an issue with Alpha/Beta addons not being properly selected."
},
{
"Version": "1.16.1",
"Description": "Default addon channel can now be set separately per World of Warcraft client.\nAddons can now be set to auto update by default per World of Warcraft client.\nAttempt to make updating safer with rollback ability.\nContext information added to the bottom screen bar.\nSmall indicator for auto updated addons.\nWhen closing WowUp maximized it should start back up maximized.\nUI updates.\nBug Fixes."

View File

@@ -193,9 +193,14 @@ namespace WowUp.WPF.Services
private AddonSearchResultFile GetLatestFile(AddonSearchResult searchResult, AddonChannelType channelType)
{
var exactMatch = searchResult.Files.FirstOrDefault(lf => lf.ChannelType == channelType);
if (exactMatch != null)
{
return exactMatch;
}
return searchResult.Files
.Where(lf => lf.ChannelType <= channelType)
.FirstOrDefault();
.FirstOrDefault(lf => lf.ChannelType <= channelType);
}
public async Task<PotentialAddon> GetAddonByUri(

View File

@@ -10,7 +10,7 @@
<PackageId>WowUp</PackageId>
<Authors>Jliddev</Authors>
<Product>WowUp</Product>
<Version>1.16.1</Version>
<Version>1.16.2</Version>
<ApplicationIcon>wowup_logo_512np_RRT_icon.ico</ApplicationIcon>
<Copyright>jliddev</Copyright>
<PackageProjectUrl>https://wowup.io</PackageProjectUrl>