From 5e030331a03aaf544534174d8ee96097c968fe65 Mon Sep 17 00:00:00 2001 From: jliddev Date: Wed, 23 Sep 2020 09:34:49 -0500 Subject: [PATCH] Dont overwrite the user's selected client path on startup. --- WowUp.WPF/Services/WarcraftService.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/WowUp.WPF/Services/WarcraftService.cs b/WowUp.WPF/Services/WarcraftService.cs index 928a06f0..8e088a6b 100644 --- a/WowUp.WPF/Services/WarcraftService.cs +++ b/WowUp.WPF/Services/WarcraftService.cs @@ -72,12 +72,18 @@ namespace WowUp.WPF.Services var clientLocation = GetClientLocation(clientType); var productLocation = GetProductLocation(clientType); - //Log.Information($"clientLocation {clientLocation}, productLocation: {productLocation}"); + Log.Information($"clientLocation {clientLocation}, productLocation: {productLocation}"); if (AreEqualPaths(clientLocation, productLocation)) { continue; } + // If the path that the user selected is valid, then move on. + if(!string.IsNullOrEmpty(clientLocation) && IsClientFolder(clientType, clientLocation)) + { + continue; + } + var locationPreference = GetClientLocationPreference(clientType); if (locationPreference == null) {