diff src/services/anilist.cpp @ 47:d8eb763e6661

information.cpp: add widgets to the list tab, and add an "optional date" widget like taiga has so users can specify whether to set the date or not
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 00:43:38 -0400
parents 619cbd6e69f9
children e613772f41d5
line wrap: on
line diff
--- a/src/services/anilist.cpp	Sat Sep 23 01:02:15 2023 -0400
+++ b/src/services/anilist.cpp	Mon Sep 25 00:43:38 2023 -0400
@@ -87,7 +87,7 @@
 		return;
 	}
 
-	if (!map.contains(status)) {
+	if (map.find(status) == map.end()) {
 		anime.SetUserStatus(Anime::ListStatus::NOT_IN_LIST);
 		return;
 	}
@@ -107,7 +107,7 @@
 	if (anime.GetUserIsRewatching())
 		return "REWATCHING";
 
-	if (!map.contains(anime.GetUserStatus()))
+	if (map.find(anime.GetUserStatus()) == map.end())
 		return "CURRENT";
 	return map[anime.GetUserStatus()];
 }