From c5ade6ed8fd0193216a921723a0a3475cfce20bb Mon Sep 17 00:00:00 2001 From: fmmmlee <30479162+fmmmlee@users.noreply.github.com> Date: Sat, 31 Oct 2020 20:34:57 -0700 Subject: [PATCH] changed fix from last commit more concise this way, keeps config management in one spot --- application/GW2 Addon Manager/Properties/AssemblyInfo.cs | 2 +- .../GW2 Addon Manager/UI/OpeningPage/OpeningView.xaml.cs | 4 ---- .../GW2 Addon Manager/UI/OpeningPage/OpeningViewModel.cs | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/application/GW2 Addon Manager/Properties/AssemblyInfo.cs b/application/GW2 Addon Manager/Properties/AssemblyInfo.cs index 7e48162..8077eb5 100644 --- a/application/GW2 Addon Manager/Properties/AssemblyInfo.cs +++ b/application/GW2 Addon Manager/Properties/AssemblyInfo.cs @@ -53,5 +53,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("1.3.0.1")] +[assembly: AssemblyVersion("1.3.0.2")] [assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/application/GW2 Addon Manager/UI/OpeningPage/OpeningView.xaml.cs b/application/GW2 Addon Manager/UI/OpeningPage/OpeningView.xaml.cs index 892a9a7..dce9b4f 100644 --- a/application/GW2 Addon Manager/UI/OpeningPage/OpeningView.xaml.cs +++ b/application/GW2 Addon Manager/UI/OpeningPage/OpeningView.xaml.cs @@ -138,11 +138,7 @@ private void SelectDirectoryBtn_OnClick(object sender, RoutedEventArgs e) pathSelectionDialog.IsFolderPicker = true; CommonFileDialogResult result = pathSelectionDialog.ShowDialog(); if (result == (CommonFileDialogResult)1) - { OpeningViewModel.GetInstance.GamePath = pathSelectionDialog.FileName; - _configurationManager.UserConfig.GamePath = pathSelectionDialog.FileName; - _configurationManager.SaveConfiguration(); - } } } diff --git a/application/GW2 Addon Manager/UI/OpeningPage/OpeningViewModel.cs b/application/GW2 Addon Manager/UI/OpeningPage/OpeningViewModel.cs index d186dde..2a7a87e 100644 --- a/application/GW2 Addon Manager/UI/OpeningPage/OpeningViewModel.cs +++ b/application/GW2 Addon Manager/UI/OpeningPage/OpeningViewModel.cs @@ -178,6 +178,7 @@ public string GamePath if (value == _gamePath) return; SetProperty(ref _gamePath, value); _configurationManager.UserConfig.GamePath = value; + _configurationManager.SaveConfiguration(); } } private string _gamePath;