Mercurial > minori
diff src/core/anime.cpp @ 10:4b198a111713
Update
things actually compile now btw
qttest wants to fuck over the model but that might be my fault so /shrug
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sat, 16 Sep 2023 02:06:01 -0400 |
parents | 5c0397762b53 |
children | 2743011a6042 |
line wrap: on
line diff
--- a/src/core/anime.cpp Sun Sep 10 03:59:16 2023 -0400 +++ b/src/core/anime.cpp Sat Sep 16 02:06:01 2023 -0400 @@ -21,14 +21,10 @@ } void Anime::AddToUserList() { - if (!list_info_.get()) - return; list_info_.reset(new ListInformation); } void Anime::RemoveFromUserList() { - if (list_info_.get()) - return; list_info_.reset(); } @@ -87,6 +83,11 @@ list_info_->status = status; } +void Anime::SetUserScore(int score) { + assert(list_info_.get()); + list_info_->score = score; +} + void Anime::SetUserProgress(int progress) { assert(list_info_.get()); list_info_->progress = progress;