Fixed favorites being able to be added multiple times.
This commit is contained in:
parent
804b33f389
commit
bda17dd62e
@ -25,7 +25,10 @@ bool Favorite::AnyFavorites()
|
||||
|
||||
void Favorite::AddFavorite(std::string identifier)
|
||||
{
|
||||
favoritesList.push_back(identifier);
|
||||
if (!IsFavorite(identifier))
|
||||
{
|
||||
favoritesList.push_back(identifier);
|
||||
}
|
||||
}
|
||||
|
||||
void Favorite::RemoveFavorite(std::string identifier)
|
||||
|
Reference in New Issue
Block a user