aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-30 16:47:40 +0100
committerdec05eba <dec05eba@protonmail.com>2020-10-30 18:30:46 +0100
commit928f2525c29929de0c2ab520f48c82b5cb882aa7 (patch)
treee97130909f65e7835e4740824e9f38f58e4c0fbe /plugins
parente422322650f9cb057937182987071438f9c79e84 (diff)
Matrix: re-add /logout, cancel task immediately
Cancel video download when pressing escape, other fixes..
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Manga.hpp2
-rw-r--r--plugins/Page.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Manga.hpp b/plugins/Manga.hpp
index d3725da..afd8a3c 100644
--- a/plugins/Manga.hpp
+++ b/plugins/Manga.hpp
@@ -53,7 +53,7 @@ namespace QuickMedia {
public:
MangaChaptersPage(Program *program, std::string manga_name, std::string manga_url) : TrackablePage(program, std::move(manga_name), std::move(manga_url)) {}
TrackResult track(const std::string &str) override;
- void on_navigate_to_page() override;
+ void on_navigate_to_page(BodyItems &body_items) override;
protected:
virtual bool extract_id_from_url(const std::string &url, std::string &manga_id) const = 0;
virtual const char* get_service_name() const = 0;
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index cc7dad6..db844c5 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -45,7 +45,7 @@ namespace QuickMedia {
virtual bool is_lazy_fetch_page() const { return false; }
// This is called both when first navigating to page and when going back to page
- virtual void on_navigate_to_page() {};
+ virtual void on_navigate_to_page(BodyItems &body_items) { (void)body_items; }
// Called periodically (every frame right now) if this page is the currently active one
virtual void update() {}