LuaRegisteredFunctionsList - override Clear() so that needed clear logic can't be mistakenly not called. Fixes #1763
This commit is contained in:
parent
b80b367831
commit
1e41dbf20d
|
@ -37,7 +37,7 @@ namespace BizHawk.Client.Common
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ClearAll()
|
public new void Clear()
|
||||||
{
|
{
|
||||||
if (Global.Emulator.InputCallbacksAvailable())
|
if (Global.Emulator.InputCallbacksAvailable())
|
||||||
{
|
{
|
||||||
|
@ -50,7 +50,7 @@ namespace BizHawk.Client.Common
|
||||||
memoryCallbacks.RemoveAll(this.Select(w => w.MemCallback));
|
memoryCallbacks.RemoveAll(this.Select(w => w.MemCallback));
|
||||||
}
|
}
|
||||||
|
|
||||||
Clear();
|
base.Clear();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -102,7 +102,7 @@ namespace BizHawk.Client.EmuHawk
|
||||||
|
|
||||||
private void RemoveAllBtn_Click(object sender, EventArgs e)
|
private void RemoveAllBtn_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.ClearAll();
|
GlobalWin.Tools.LuaConsole.LuaImp.RegisteredFunctions.Clear();
|
||||||
PopulateListView();
|
PopulateListView();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue