1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Don't auto-enable mods on update

This commit is contained in:
Ivan Savenko
2024-11-15 16:17:31 +00:00
parent 09606952a2
commit 6ced6c96b6
2 changed files with 11 additions and 4 deletions

View File

@@ -233,8 +233,7 @@ bool ModStateController::doInstallMod(QString modname, QString archivePath)
if(upperLevel != modDirName)
removeModDir(destDir + upperLevel);
CResourceHandler::get("initial")->updateFilteredFiles([](const std::string &) { return true; });
//modList->reloadLocalMods();
modList->reloadLocalState();
return true;
}
@@ -252,7 +251,6 @@ bool ModStateController::doUninstallMod(QString modname)
if(!removeModDir(modDir))
return addError(modname, tr("Mod is located in protected directory, please remove it manually:\n") + modFullDir.absolutePath());
CResourceHandler::get("initial")->updateFilteredFiles([](const std::string &){ return true; });
modList->reloadLocalState();
return true;