mirror of
https://github.com/WowUp/WowUp.git
synced 2026-05-24 22:46:45 -04:00
v1.12.2
When an unknown client is detected, add the preference on the fly
This commit is contained in:
@@ -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."
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user