clear input buffer before select export way

This commit is contained in:
HolographicHat
2022-09-19 18:44:17 +08:00
parent a76f03b035
commit 78a29e9390

View File

@@ -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<AchievementAllDataNotify>) (num switch {
1 => ToSnapGenshin,