Changing join to detach so that the thread will not block the UI

0.6.3
Thunderforge 7 years ago
parent 26dfef7970
commit e26c675829

@ -335,7 +335,7 @@ void Launcher::DataFilesPage::slotAddonDataChanged()
// Loading cells for core Morrowind + Expansions takes about 0.2 seconds, which is enough to cause a
// barely perceptible UI lag. Splitting into its own thread to alleviate that.
std::thread loadCellsThread(&DataFilesPage::reloadCells, this, selectedFiles);
loadCellsThread.join();
loadCellsThread.detach();
}
}

Loading…
Cancel
Save