When an unknown client is detected, add the preference on the fly
This commit is contained in:
jliddev
2020-07-23 10:35:05 -05:00
parent 0066dd6b21
commit 76769d115b
3 changed files with 14 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
{
"ChangeLogs": [
{
"Version": "1.12.2",
"Description": "Fix an issue with beta client crashing the app when detected."
},
{
"Version": "1.12.1",
"Description": "Attempt to fix issues with maxmizing the window going being the taskbar."

View File

@@ -73,14 +73,22 @@ namespace WowUp.WPF.Services
var clientLocation = GetClientLocation(clientType);
var productLocation = GetProductLocation(clientType);
if(AreEqualPaths(clientLocation, productLocation))
Log.Information($"clientLocation {clientLocation}, productLocation: {productLocation}");
if (AreEqualPaths(clientLocation, productLocation))
{
continue;
}
var locationPreference = GetClientLocationPreference(clientType);
if(locationPreference == null)
{
locationPreference = _preferenceRepository.Create(GetClientLocationPreferenceKey(clientType), string.Empty);
}
locationPreference.Value = productLocation;
Log.Information($"locationPreference {locationPreference}");
_preferenceRepository.SaveItem(locationPreference);
var changedClient = new ChangedClient

View File

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