From 78a29e939097dc07e10509258dcdf1aa57440d6c Mon Sep 17 00:00:00 2001 From: HolographicHat Date: Mon, 19 Sep 2022 18:44:17 +0800 Subject: [PATCH] clear input buffer before select export way --- src/Export.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Export.cs b/src/Export.cs index 1105e24..0a60a8f 100644 --- a/src/Export.cs +++ b/src/Export.cs @@ -11,6 +11,9 @@ public static class Export { public static void Choose(AchievementAllDataNotify data) { Console.Write(App.ExportChoose); + while (Console.KeyAvailable) { + Console.ReadKey(false); + } if (!int.TryParse(Console.ReadLine(), out var num)) num = 0; ((Action) (num switch { 1 => ToSnapGenshin,