diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-06-27 09:31:22 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-06-27 09:39:25 +0200 |
commit | 7c991b4d29e410c854669b36d707b684c695f047 (patch) | |
tree | 57941a778c26dcf067e5a425f7e188e06a8197b2 /plugins | |
parent | d004af8344758a6d9412a0dba83702f43f6805ee (diff) |
Allow bookmarking manga from creator page
Fix ctrl+v (or one character) search on youtube not switching to card
view.
Testing fix body navigation back scrolling when it shouldn't.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/MangaGeneric.hpp | 1 | ||||
-rw-r--r-- | plugins/Mangadex.hpp | 1 | ||||
-rw-r--r-- | plugins/Manganelo.hpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/plugins/MangaGeneric.hpp b/plugins/MangaGeneric.hpp index 5318e63..c9911d9 100644 --- a/plugins/MangaGeneric.hpp +++ b/plugins/MangaGeneric.hpp @@ -176,6 +176,7 @@ namespace QuickMedia { const char* get_title() const override { return creator.name.c_str(); } PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; PluginResult lazy_fetch(BodyItems &result_items) override; + const char* get_bookmark_name() const override { return search_page->get_bookmark_name(); } private: MangaGenericSearchPage *search_page; Creator creator; diff --git a/plugins/Mangadex.hpp b/plugins/Mangadex.hpp index cd37aff..869ba80 100644 --- a/plugins/Mangadex.hpp +++ b/plugins/Mangadex.hpp @@ -42,6 +42,7 @@ namespace QuickMedia { PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; PluginResult get_page(const std::string &str, int page, BodyItems &result_items) override; PluginResult lazy_fetch(BodyItems &result_items) override; + const char* get_bookmark_name() const override { return "mangadex"; } private: MangadexSearchPage *search_page; Creator creator; diff --git a/plugins/Manganelo.hpp b/plugins/Manganelo.hpp index f44ad2d..a44249c 100644 --- a/plugins/Manganelo.hpp +++ b/plugins/Manganelo.hpp @@ -29,6 +29,7 @@ namespace QuickMedia { const char* get_title() const override { return creator.name.c_str(); } PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; PluginResult lazy_fetch(BodyItems &result_items) override; + const char* get_bookmark_name() const override { return "manganelo"; } private: Creator creator; }; |