1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fix handling of "keepDisabled" option in Launcher

This commit is contained in:
Ivan Savenko 2023-07-22 22:45:39 +03:00
parent 01d588ab54
commit 5b812649ee

View File

@ -280,7 +280,7 @@ CModEntry CModList::getMod(QString modname) const
if(conf.isNull())
{
settings["active"] = true; // default
settings["active"] = !local.value("keepDisabled").toBool();
}
else
{
@ -288,7 +288,7 @@ CModEntry CModList::getMod(QString modname) const
{
settings = conf.toMap();
if(settings.value("active").isNull())
settings["active"] = true; // default
settings["active"] = !local.value("keepDisabled").toBool();
}
else
settings.insert("active", conf);