Fix bug where user profile directory lost when loading from recent files. Profile had been saved in "current directory"

This commit is contained in:
Tim Young 2017-08-02 10:13:32 -05:00
parent e594f8bac8
commit 508ac987f7

View File

@ -1726,6 +1726,7 @@ namespace EduNetworkBuilder
else if (extension == ".enbu")
{
CurrentUser = new PersonClass(filename);
CurrentUser.filepath = Path.GetDirectoryName(filename); //store the directory
OurSettings = NB.GetSettings(); //Grab the new settings from the user
UpdateMenu();