From 7e1c471ee614447f0980f15269e71152f2f57525 Mon Sep 17 00:00:00 2001 From: jasonchenwork Date: Thu, 10 Apr 2025 14:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E5=87=BD=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CommandHandler.cs | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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