Lua Console - when opening a duplicate lua script, don't turn script on if the disable lua script on load option is checked

This commit is contained in:
andres.delikat 2012-03-20 21:44:34 +00:00
parent 652fea7392
commit bb7e320f92
1 changed files with 47 additions and 47 deletions

View File

@ -182,7 +182,7 @@ namespace BizHawk.MultiClient
{
for (int i = 0; i < luaList.Count; i++)
{
if (path == luaList[i].Path && luaList[i].Enabled == false)
if (path == luaList[i].Path && luaList[i].Enabled == false && !Global.Config.DisableLuaScriptsOnLoad)
{
luaList[i].Toggle();
LuaListView.Refresh();