diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-13 23:10:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-13 23:10:35 +0200 |
commit | 349fc4143d4c83c50aa6340bbe7dc537a6fbf949 (patch) | |
tree | e462fdf55cf6614fa222a8308d05ef3943cc215b /launcher/minecraft/MinecraftInstance.cpp | |
parent | cb258146c4f66a1e3ad8f9262030900737d20101 (diff) | |
parent | 4be9e6a0bc0a4ac6b47ead7008b8a6a811c63b4d (diff) | |
download | PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.tar.gz PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.tar.bz2 PrismLauncher-349fc4143d4c83c50aa6340bbe7dc537a6fbf949.zip |
Merge pull request #714 from Scrumplex/fix-tests
Fix mod metadata tests
Diffstat (limited to 'launcher/minecraft/MinecraftInstance.cpp')
-rw-r--r-- | launcher/minecraft/MinecraftInstance.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/launcher/minecraft/MinecraftInstance.cpp b/launcher/minecraft/MinecraftInstance.cpp index e99d30fe..7e72601f 100644 --- a/launcher/minecraft/MinecraftInstance.cpp +++ b/launcher/minecraft/MinecraftInstance.cpp @@ -1015,7 +1015,8 @@ std::shared_ptr<ModFolderModel> MinecraftInstance::loaderModList() const { if (!m_loader_mod_list) { - m_loader_mod_list.reset(new ModFolderModel(modsRoot())); + bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool(); + m_loader_mod_list.reset(new ModFolderModel(modsRoot(), is_indexed)); m_loader_mod_list->disableInteraction(isRunning()); connect(this, &BaseInstance::runningStatusChanged, m_loader_mod_list.get(), &ModFolderModel::disableInteraction); } @@ -1026,7 +1027,8 @@ std::shared_ptr<ModFolderModel> MinecraftInstance::coreModList() const { if (!m_core_mod_list) { - m_core_mod_list.reset(new ModFolderModel(coreModsDir())); + bool is_indexed = !APPLICATION->settings()->get("ModMetadataDisabled").toBool(); + m_core_mod_list.reset(new ModFolderModel(coreModsDir(), is_indexed)); m_core_mod_list->disableInteraction(isRunning()); connect(this, &BaseInstance::runningStatusChanged, m_core_mod_list.get(), &ModFolderModel::disableInteraction); } |