From 6b22630ab1882aabdb1ff262576c74cba46fda4b Mon Sep 17 00:00:00 2001
From: adelikat <adelikat@tasvideos.org>
Date: Sat, 6 Jun 2020 10:58:09 -0500
Subject: [PATCH] cheats - when a cheat is auto-removed, also remove it from
 the recent cheats list

---
 src/BizHawk.Client.Common/tools/CheatList.cs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/BizHawk.Client.Common/tools/CheatList.cs b/src/BizHawk.Client.Common/tools/CheatList.cs
index 75a5230756..5f6c82c0de 100644
--- a/src/BizHawk.Client.Common/tools/CheatList.cs
+++ b/src/BizHawk.Client.Common/tools/CheatList.cs
@@ -238,6 +238,7 @@ namespace BizHawk.Client.Common
 			else if (!_cheatList.Any() && !string.IsNullOrWhiteSpace(CurrentFileName))
 			{
 				new FileInfo(CurrentFileName).Delete();
+				Global.Config.RecentCheats.Remove(CurrentFileName);
 			}
 		}