diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-07 22:54:20 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-07 22:55:11 +0100 |
commit | 75c610d1f65d741bbeba9f1ddeef60a6e9315427 (patch) | |
tree | 0dd79a5a7f35c89b9672d55fbf24cb1f6de13aa9 /plugins/Info.hpp | |
parent | 9539a71dbeafdc4107d3b92eefada332ee45579a (diff) |
Use one struct for all args in Page::submit instead of multiple args (easier to add new fields without changing code)
Also remove submit_body_item from page.
Diffstat (limited to 'plugins/Info.hpp')
-rw-r--r-- | plugins/Info.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Info.hpp b/plugins/Info.hpp index cdaefd3..3ede60d 100644 --- a/plugins/Info.hpp +++ b/plugins/Info.hpp @@ -7,7 +7,7 @@ namespace QuickMedia { public: InfoPage(Program *program) : Page(program) {} const char* get_title() const override { return "Info"; } - PluginResult submit(const std::string &title, const std::string &url, std::vector<Tab> &result_tabs) override; + PluginResult submit(const SubmitArgs &args, std::vector<Tab> &result_tabs) override; bool submit_is_async() const override { return false; } void copy_to_clipboard(const BodyItem *body_item) override; |