mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Changing join to detach so that the thread will not block the UI
This commit is contained in:
parent
26dfef7970
commit
e26c675829
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue