mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-21 21:55:38 +00:00
Moved the ScreenScraper account toggle to the bottom of the scraper account screen.
This commit is contained in:
parent
4227a609a2
commit
5019d8c065
|
@ -168,20 +168,6 @@ void GuiScraperMenu::openAccountOptions()
|
|||
{
|
||||
auto s = new GuiSettings(mWindow, "ACCOUNT SETTINGS");
|
||||
|
||||
// Whether to use the ScreenScraper account when scraping.
|
||||
auto scraper_use_account_screenscraper = std::make_shared<SwitchComponent>(mWindow);
|
||||
scraper_use_account_screenscraper->setState(
|
||||
Settings::getInstance()->getBool("ScraperUseAccountScreenScraper"));
|
||||
s->addWithLabel("USE THIS ACCOUNT FOR SCREENSCRAPER", scraper_use_account_screenscraper);
|
||||
s->addSaveFunc([scraper_use_account_screenscraper, s] {
|
||||
if (scraper_use_account_screenscraper->getState() !=
|
||||
Settings::getInstance()->getBool("ScraperUseAccountScreenScraper")) {
|
||||
Settings::getInstance()->setBool("ScraperUseAccountScreenScraper",
|
||||
scraper_use_account_screenscraper->getState());
|
||||
s->setNeedsSaving();
|
||||
}
|
||||
});
|
||||
|
||||
// ScreenScraper username.
|
||||
auto scraper_username_screenscraper = std::make_shared<TextComponent>(
|
||||
mWindow, "", Font::get(FONT_SIZE_MEDIUM), 0x777777FF, ALIGN_RIGHT);
|
||||
|
@ -216,6 +202,20 @@ void GuiScraperMenu::openAccountOptions()
|
|||
}
|
||||
});
|
||||
|
||||
// Whether to use the ScreenScraper account when scraping.
|
||||
auto scraper_use_account_screenscraper = std::make_shared<SwitchComponent>(mWindow);
|
||||
scraper_use_account_screenscraper->setState(
|
||||
Settings::getInstance()->getBool("ScraperUseAccountScreenScraper"));
|
||||
s->addWithLabel("USE THIS ACCOUNT FOR SCREENSCRAPER", scraper_use_account_screenscraper);
|
||||
s->addSaveFunc([scraper_use_account_screenscraper, s] {
|
||||
if (scraper_use_account_screenscraper->getState() !=
|
||||
Settings::getInstance()->getBool("ScraperUseAccountScreenScraper")) {
|
||||
Settings::getInstance()->setBool("ScraperUseAccountScreenScraper",
|
||||
scraper_use_account_screenscraper->getState());
|
||||
s->setNeedsSaving();
|
||||
}
|
||||
});
|
||||
|
||||
mWindow->pushGui(s);
|
||||
}
|
||||
|
||||
|
|
|
@ -85,9 +85,9 @@ void Settings::setDefaults()
|
|||
|
||||
// Scraper.
|
||||
mStringMap["Scraper"] = {"screenscraper", "screenscraper"};
|
||||
mBoolMap["ScraperUseAccountScreenScraper"] = {true, true};
|
||||
mStringMap["ScraperUsernameScreenScraper"] = {"", ""};
|
||||
mStringMap["ScraperPasswordScreenScraper"] = {"", ""};
|
||||
mBoolMap["ScraperUseAccountScreenScraper"] = {true, true};
|
||||
|
||||
mBoolMap["ScrapeGameNames"] = {true, true};
|
||||
mBoolMap["ScrapeRatings"] = {true, true};
|
||||
|
|
Loading…
Reference in a new issue