Do a complete refresh of profile list when saving profile

This commit is contained in:
Adam Honse 2020-03-03 21:02:50 -06:00
parent ec73337929
commit 45a5f629e5

View file

@ -62,9 +62,9 @@ bool ProfileManager::SaveProfile(std::string profile_name)
controller_file.close();
/*---------------------------------------------------------*\
| Add the new file to the profile list |
| Update the profile list |
\*---------------------------------------------------------*/
profile_list.push_back(filename);
UpdateProfileList();
return(true);
}
@ -257,4 +257,4 @@ void ProfileManager::UpdateProfileList()
profile_file.close();
}
}
}
}