From d2174364b2c270ef422ca18b5357fa3bbe9c1c52 Mon Sep 17 00:00:00 2001 From: Clansty Date: Sat, 7 Sep 2024 21:27:48 +0800 Subject: [PATCH] [F] reset HideSelfMadeCharts when enter login screen --- AquaMai/UX/HideSelfMadeCharts.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AquaMai/UX/HideSelfMadeCharts.cs b/AquaMai/UX/HideSelfMadeCharts.cs index 625e0e58..288b75db 100644 --- a/AquaMai/UX/HideSelfMadeCharts.cs +++ b/AquaMai/UX/HideSelfMadeCharts.cs @@ -77,4 +77,12 @@ public class HideSelfMadeCharts _keyPressFrames = 0; } } + + [HarmonyPostfix] + [HarmonyPatch(typeof(EntryProcess), "OnStart")] + public static void EntryProcessOnStart(ref EntryProcess __instance) + { + // reset status on login + isShowSelfMadeCharts = true; + } }