Keep using former user settings on version upgrades

This commit is contained in:
Peter Kirmeier 2019-07-07 13:40:01 +02:00
parent 4b0fda9373
commit 47bba47ea4
2 changed files with 5 additions and 5 deletions

View file

@ -17,9 +17,9 @@ namespace SystemTrayMenu
}
public static bool LoadOrSetByUser()
{
bool pathOK = Directory.Exists(
Properties.Settings.Default.PathDirectory);
{
Properties.Settings.Default.Upgrade(); // configs located at "%localappdata%\<AssemblyCompany>\"
bool pathOK = Directory.Exists(Properties.Settings.Default.PathDirectory);
if (!pathOK)
{
pathOK = SetFolderByUser();

View file

@ -31,5 +31,5 @@ using System.Runtime.InteropServices;
// 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("0.9.1.242")]
[assembly: AssemblyFileVersion("0.9.1.242")]
[assembly: AssemblyVersion("0.9.1.243")]
[assembly: AssemblyFileVersion("0.9.1.243")]