From 267b43fa05f066ee894d08593e62b5d6e31d44d1 Mon Sep 17 00:00:00 2001 From: Jools Wills Date: Sat, 26 Mar 2016 03:31:13 +0000 Subject: [PATCH] move ParseGamelistOnly option to the gui so people can easily enable it for faster startup --- es-app/src/guis/GuiMenu.cpp | 5 +++++ es-core/src/Settings.cpp | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/es-app/src/guis/GuiMenu.cpp b/es-app/src/guis/GuiMenu.cpp index 95061e599..032706b93 100644 --- a/es-app/src/guis/GuiMenu.cpp +++ b/es-app/src/guis/GuiMenu.cpp @@ -175,6 +175,11 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window), mMenu(window, "MAIN MEN s->addWithLabel("SAVE METADATA ON EXIT", save_gamelists); s->addSaveFunc([save_gamelists] { Settings::getInstance()->setBool("SaveGamelistsOnExit", save_gamelists->getState()); }); + auto parse_gamelists = std::make_shared(mWindow); + parse_gamelists->setState(Settings::getInstance()->getBool("ParseGamelistOnly")); + s->addWithLabel("PARSE GAMESLISTS ONLY", parse_gamelists); + s->addSaveFunc([parse_gamelists] { Settings::getInstance()->setBool("ParseGamelistOnly", parse_gamelists->getState()); }); + mWindow->pushGui(s); }); diff --git a/es-core/src/Settings.cpp b/es-core/src/Settings.cpp index 859f07b9d..67f12150d 100644 --- a/es-core/src/Settings.cpp +++ b/es-core/src/Settings.cpp @@ -13,7 +13,6 @@ std::vector settings_dont_save = boost::assign::list_of ("Debug") ("DebugGrid") ("DebugText") - ("ParseGamelistOnly") ("ShowExit") ("Windowed") ("VSync")