aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/Mangadex.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-02-03 19:06:23 +0100
committerdec05eba <dec05eba@protonmail.com>2022-02-03 19:06:23 +0100
commitf7f45ddc492b992cc49a92f620e37316e4d1fed4 (patch)
tree4269403c18b067c0fb6b5b397ae368d019fabdc2 /src/plugins/Mangadex.cpp
parent39ab966ebf9c23c8e801a904836a73be56b5ab92 (diff)
Add thumbnail to bookmarked manga page
Diffstat (limited to 'src/plugins/Mangadex.cpp')
-rw-r--r--src/plugins/Mangadex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/Mangadex.cpp b/src/plugins/Mangadex.cpp
index 445c809..8dd6822 100644
--- a/src/plugins/Mangadex.cpp
+++ b/src/plugins/Mangadex.cpp
@@ -360,7 +360,8 @@ namespace QuickMedia {
auto body = create_body();
body->set_items(std::move(body_items));
- result_tabs.push_back(Tab{std::move(body), std::make_unique<MangadexChaptersPage>(program, this, title, url), create_search_bar("Search...", SEARCH_DELAY_FILTER)});
+ auto chapters_page = std::make_unique<MangadexChaptersPage>(program, this, title, url, submit_body_item->thumbnail_url);
+ result_tabs.push_back(Tab{std::move(body), std::move(chapters_page), create_search_bar("Search...", SEARCH_DELAY_FILTER)});
std::vector<Creator> creators;
result = get_creators_for_manga(this, url, creators);