mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-19 16:21:08 +00:00
Changing join to detach so that the thread will not block the UI
This commit is contained in:
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…
x
Reference in New Issue
Block a user