From 295ab1f44b76bf88606a217fd6a014cbdf5a915d Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 19 Jun 2022 04:46:27 +0200 Subject: Fix submit on async reload page, fix submit on search suggestion page empty text --- plugins/Page.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Page.hpp') diff --git a/plugins/Page.hpp b/plugins/Page.hpp index 64c24c3..c1ca012 100644 --- a/plugins/Page.hpp +++ b/plugins/Page.hpp @@ -39,7 +39,7 @@ namespace QuickMedia { virtual SearchResult search(const std::string &str, BodyItems &result_items) { (void)str; (void)result_items; return SearchResult::ERR; } // If this returns true then |submit_suggestion| is called when submitting the selected item instead of |submit| // and |submit| is called when submitting the response of |submit_suggestion| - virtual bool search_is_suggestion() { return false; } + virtual bool search_is_suggestion(bool empty_search) { (void)empty_search; return false; } // Return empty |result_tabs| and PluginResult::OK to do nothing; which is useful for implementing custom actions on item submit virtual PluginResult submit(const SubmitArgs &args, std::vector &result_tabs) { -- cgit v1.2.3