diff src/gui/pages/anime_list.cpp @ 52:0c4138de2ea7

anime list: we are finally read-write
author Paper <mrpapersonic@gmail.com>
date Mon, 25 Sep 2023 22:49:42 -0400
parents 75c804f713b2
children 4c6dd5999b39
line wrap: on
line diff
--- a/src/gui/pages/anime_list.cpp	Mon Sep 25 20:29:26 2023 -0400
+++ b/src/gui/pages/anime_list.cpp	Mon Sep 25 22:49:42 2023 -0400
@@ -16,7 +16,7 @@
 #include "core/time.h"
 #include "gui/dialog/information.h"
 #include "gui/translate/anime.h"
-#include "services/anilist.h"
+#include "services/services.h"
 #include <QDebug>
 #include <QHBoxLayout>
 #include <QHeaderView>
@@ -315,7 +315,8 @@
 			return;
 		}
 
-		InformationDialog* dialog = new InformationDialog(*anime, [this] {
+		InformationDialog* dialog = new InformationDialog(*anime, [this, anime] {
+			Services::UpdateAnimeEntry(anime->GetId());
 		    Refresh();
 	    }, this);
 
@@ -339,7 +340,8 @@
 	Anime::Anime* anime =
 	    ((AnimeListWidgetModel*)sort_models[tab_bar->currentIndex()]->sourceModel())->GetAnimeFromIndex(index);
 
-	InformationDialog* dialog = new InformationDialog(*anime, [this] {
+	InformationDialog* dialog = new InformationDialog(*anime, [this, anime] {
+		Services::UpdateAnimeEntry(anime->GetId());
 		Refresh();
 	}, this);