Skip to content

Commit e0d7b15

Browse files
add threaded loading option for gamelists
1 parent db3848e commit e0d7b15

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

es-app/src/guis/GuiMenu.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,11 @@ void GuiMenu::openOtherSettings()
451451
s->addWithLabel("PARSE GAMESLISTS ONLY", parse_gamelists);
452452
s->addSaveFunc([parse_gamelists] { Settings::getInstance()->setBool("ParseGamelistOnly", parse_gamelists->getState()); });
453453

454+
auto threaded_loading = std::make_shared<SwitchComponent>(mWindow);
455+
threaded_loading->setState(Settings::getInstance()->getBool("ThreadedLoading"));
456+
s->addWithLabel("THREADED LOADING", threaded_loading);
457+
s->addSaveFunc([threaded_loading] { Settings::getInstance()->setBool("ThreadedLoading", threaded_loading->getState()); });
458+
454459
auto local_art = std::make_shared<SwitchComponent>(mWindow);
455460
local_art->setState(Settings::getInstance()->getBool("LocalArt"));
456461
s->addWithLabel("SEARCH FOR LOCAL ART", local_art);

0 commit comments

Comments
 (0)