Added a shortcut to the scraper in the metadata editor.

This commit is contained in:
Leon Styhre 2020-11-08 13:24:34 +01:00
parent 3336f50e04
commit 61998ac1a3

View file

@ -499,12 +499,18 @@ bool GuiMetaDataEd::input(InputConfig* config, Input input)
return true; return true;
} }
if (input.value != 0 && (config->isMappedTo("y", input))) {
fetch();
return true;
}
return false; return false;
} }
std::vector<HelpPrompt> GuiMetaDataEd::getHelpPrompts() std::vector<HelpPrompt> GuiMetaDataEd::getHelpPrompts()
{ {
std::vector<HelpPrompt> prompts = mGrid.getHelpPrompts(); std::vector<HelpPrompt> prompts = mGrid.getHelpPrompts();
prompts.push_back(HelpPrompt("y", "scrape"));
prompts.push_back(HelpPrompt("b", "back")); prompts.push_back(HelpPrompt("b", "back"));
return prompts; return prompts;
} }