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:
parent
01d588ab54
commit
5b812649ee
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user