aboutsummaryrefslogtreecommitdiff
path: root/plugins/Page.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Page.hpp')
-rw-r--r--plugins/Page.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Page.hpp b/plugins/Page.hpp
index 78eb3c4..be6eb76 100644
--- a/plugins/Page.hpp
+++ b/plugins/Page.hpp
@@ -35,6 +35,8 @@ namespace QuickMedia {
(void)result_tabs;
return PluginResult::ERR;
}
+ // Override and return false to make submit run in the main (ui) thread
+ virtual bool submit_is_async() { return true; }
virtual bool clear_search_after_submit() { return false; }
// Note: If pagination is done by fetching the next page until we get to |page|, then the "current page" should be reset everytime |search| is called.
// Note: the first page is 0
@@ -53,9 +55,6 @@ namespace QuickMedia {
// This is called both when first navigating to page and when going back to page
virtual void on_navigate_to_page(Body *body) { (void)body; }
- // Called periodically (every frame right now) if this page is the currently active one
- virtual void update() {}
-
std::unique_ptr<Body> create_body();
std::unique_ptr<SearchBar> create_search_bar(const std::string &placeholder_text, int search_delay);