From 50fc7e28dafe5c76ff7023b7a57c8b180d87c7c1 Mon Sep 17 00:00:00 2001 From: kalimag Date: Wed, 7 Dec 2022 08:14:36 +0100 Subject: [PATCH] Make "Stop all scripts" behave the same as toggling them off --- src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs index 69f1652d48..f89b47acd3 100644 --- a/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs +++ b/src/BizHawk.Client.EmuHawk/tools/Lua/LuaConsole.cs @@ -1058,7 +1058,10 @@ namespace BizHawk.Client.EmuHawk private void StopAllScriptsMenuItem_Click(object sender, EventArgs e) { - LuaImp.ScriptList.StopAllScripts(); + foreach (var file in LuaImp.ScriptList) + { + DisableLuaScript(file); + } UpdateDialog(); }