Merge pull request #536 from Isotarge/master
Fix forms.destroyall() and call it when lua console closes
This commit is contained in:
commit
f0e93ce80d
|
@ -190,10 +190,9 @@ namespace BizHawk.Client.EmuHawk
|
|||
)]
|
||||
public void DestroyAll()
|
||||
{
|
||||
foreach (var form in _luaForms)
|
||||
for (var i = _luaForms.Count - 1; i >= 0; i--)
|
||||
{
|
||||
form.Close();
|
||||
_luaForms.Remove(form);
|
||||
_luaForms.ElementAt(i).Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -136,6 +136,7 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
public void Close()
|
||||
{
|
||||
FormsLibrary.DestroyAll();
|
||||
_lua = new Lua();
|
||||
GuiLibrary.Dispose();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue