diff --git a/es-app/src/guis/GuiScraperMenu.cpp b/es-app/src/guis/GuiScraperMenu.cpp index 0014e6832..2f009ed53 100644 --- a/es-app/src/guis/GuiScraperMenu.cpp +++ b/es-app/src/guis/GuiScraperMenu.cpp @@ -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(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( 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(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); } diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 60869faed..8e79d22e1 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -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};