mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-07-19 22:37:59 +02:00
Adding button to remove from playlists (does not yet save favorites.txt yet)
This commit is contained in:
@@ -653,14 +653,12 @@ void Page::removePlaylist()
|
||||
CollectionInfo *collection = info.collection;
|
||||
|
||||
std::vector<Item *> *items = collection->playlists["favorites"];
|
||||
std::vector<Item *> it = std::find(items->begin(), items->end(), selectedItem_);
|
||||
std::vector<Item *>::iterator it = std::find(items->begin(), items->end(), selectedItem_);
|
||||
|
||||
if(it != items->end())
|
||||
{
|
||||
items->erase(it);
|
||||
|
||||
items->shrink_to_fit();
|
||||
|
||||
if(activeMenu_)
|
||||
{
|
||||
activeMenu_->deallocateSpritePoints();
|
||||
|
||||
@@ -81,6 +81,7 @@ public:
|
||||
void setMinShowTime(float value);
|
||||
float getMinShowTime();
|
||||
void addPlaylist();
|
||||
void removePlaylist();
|
||||
|
||||
private:
|
||||
void highlight();
|
||||
|
||||
Reference in New Issue
Block a user