move RentLuaSession management out of LuaFileList and into LuaConsole, this is a presentation concern

This commit is contained in:
adelikat 2020-05-31 10:58:09 -05:00
parent 98827aee47
commit f082ef1f4f
2 changed files with 6 additions and 3 deletions

View File

@ -103,9 +103,6 @@ namespace BizHawk.Client.Common
}
}
Global.Config.RecentLuaSession.Add(path);
ForEach(lua => Global.Config.RecentLua.Add(lua.Path));
_filename = path;
LoadCallback?.Invoke();

View File

@ -519,6 +519,12 @@ namespace BizHawk.Client.EmuHawk
UpdateDialog();
LuaImp.ScriptList.Changes = false;
Config.RecentLuaSession.Add(path);
foreach (var script in LuaImp.ScriptList)
{
Config.RecentLua.Add(script.Path);
}
return result;
}