Mercurial > minori
diff src/gui/window.cc @ 83:d02fdf1d6708
*: huuuge update
1. make the now playing page function correctly
2. de-constructorfy many of our custom widgets,
allowing them to be changed on-the-fly from
the Now Playing page
3. ... :)
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Tue, 24 Oct 2023 22:01:02 -0400 |
parents | 8b65c417c225 |
children | b315f3759c56 |
line wrap: on
line diff
--- a/src/gui/window.cc Mon Oct 23 13:37:42 2023 -0400 +++ b/src/gui/window.cc Tue Oct 24 22:01:02 2023 -0400 @@ -98,12 +98,12 @@ Filesystem::Path p = Track::Media::GetCurrentPlaying(); std::unordered_map<std::string, std::string> elements = Track::Media::GetFileElements(p); int id = Anime::db.GetAnimeFromTitle(elements["title"]); - if (id == 0) { + if (id <= 0) { page->SetDefault(); return; } - page->SetPlaying(id, elements); + page->SetPlaying(Anime::db.items[id], elements); }); timer->start(5000);