move RentLuaSession management out of LuaFileList and into LuaConsole, this is a presentation concern
This commit is contained in:
parent
98827aee47
commit
f082ef1f4f
|
@ -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();
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue