Windows: Always detach request threads.

No point having a global if it's always detached after use.
This commit is contained in:
Unknown W. Brackets
2023-03-25 17:12:44 -07:00
parent f1834fcdde
commit 089580d09a
2 changed files with 11 additions and 26 deletions
+1 -2
View File
@@ -541,8 +541,7 @@ UI::EventReturn GameBrowser::LastClick(UI::EventParams &e) {
UI::EventReturn GameBrowser::BrowseClick(UI::EventParams &e) {
auto mm = GetI18NCategory("MainMenu");
System_BrowseForFolder(mm->T("Choose folder"), [this](const std::string &value, int) {
std::string filename = value;
System_BrowseForFolder(mm->T("Choose folder"), [this](const std::string &filename, int) {
this->SetPath(Path(filename));
});
return UI::EVENT_DONE;