Ver Fonte

Fix handling of "keepDisabled" option in Launcher

Ivan Savenko há 2 anos atrás
pai
commit
5b812649ee
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      launcher/modManager/cmodlist.cpp

+ 2 - 2
launcher/modManager/cmodlist.cpp

@@ -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);