mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-02-23 17:51:24 +01:00
Adding button to remove from playlists (does not yet save favorites.txt yet)
This commit is contained in:
parent
0ff46605eb
commit
b940534e48
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user