1
0
Fork 1
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:
Thunderforge 2018-06-02 17:29:35 -05:00
parent 26dfef7970
commit e26c675829

View file

@ -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();
}
}