diff --git a/CommandHandler.cs b/CommandHandler.cs index 3064568..98d0f01 100644 --- a/CommandHandler.cs +++ b/CommandHandler.cs @@ -8,7 +8,7 @@ namespace DualScreenDemo public class CommandHandler { public static bool readyForSongListInput = false; - private readonly int _maxHistoryLength = 6; // 最多保留 100 筆 + private readonly int _maxHistoryLength = 6; // 最多保留 6 筆 private readonly Queue _indataHistory = new Queue(); private readonly SongListManager songListManager; @@ -891,20 +891,6 @@ private static void DisplaySongHistory() } } - public static bool CheckLogForShutdown(string filePath) - { - if (File.Exists(filePath)) - { - - string content = File.ReadAllText(filePath).Replace(Environment.NewLine, ""); - if (content.Length >= 6 && content.Substring(content.Length - 6) == "bbbaaa") - { - return true; - } - } - return false; - } - public static void ShutdownComputer() { try