Add button to delete profiles and confirmation dialog

This commit is contained in:
Adam Honse 2020-03-03 21:15:33 -06:00
parent 45a5f629e5
commit 70783fb28f
4 changed files with 54 additions and 19 deletions

View file

@ -211,9 +211,11 @@ bool ProfileManager::LoadProfile(std::string profile_name)
return(ret_val);
}
void ProfileManager::DeleteProfile(std::string name)
void ProfileManager::DeleteProfile(std::string profile_name)
{
remove(profile_name.c_str());
UpdateProfileList();
}
void ProfileManager::UpdateProfileList()