diff --git a/apps/launcher/advancedpage.cpp b/apps/launcher/advancedpage.cpp index 383799e2a..bc0378314 100644 --- a/apps/launcher/advancedpage.cpp +++ b/apps/launcher/advancedpage.cpp @@ -5,6 +5,7 @@ #include #include #include +#include #include #include @@ -166,5 +167,8 @@ void Launcher::AdvancedPage::saveSettingBool(QCheckBox *checkbox, const std::str void Launcher::AdvancedPage::slotSelectedDataFilesChanged(QStringList selectedFiles) { - loadCellsForAutocomplete(selectedFiles); + // 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(&AdvancedPage::loadCellsForAutocomplete, this, selectedFiles); + loadCellsThread.join(); } \ No newline at end of file