From 1acd532ef13cb8533f55b02419402cfc098f4160 Mon Sep 17 00:00:00 2001 From: Infi Date: Fri, 21 Jun 2024 20:58:17 +0200 Subject: [PATCH] Fix chat hide command not working --- ChatTwo/ChatTwo.csproj | 2 +- ChatTwo/Ui/ChatLogWindow.cs | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ChatTwo/ChatTwo.csproj b/ChatTwo/ChatTwo.csproj index c6d96a2..09b74b0 100755 --- a/ChatTwo/ChatTwo.csproj +++ b/ChatTwo/ChatTwo.csproj @@ -1,6 +1,6 @@ - 1.26.3 + 1.26.4 net8.0-windows enable enable diff --git a/ChatTwo/Ui/ChatLogWindow.cs b/ChatTwo/Ui/ChatLogWindow.cs index 29d88c1..97b1b38 100644 --- a/ChatTwo/Ui/ChatLogWindow.cs +++ b/ChatTwo/Ui/ChatLogWindow.cs @@ -232,13 +232,9 @@ public sealed class ChatLogWindow : Window } } - private void ToggleChat(string command, string arguments) + private void ToggleChat(string _, string arguments) { - var parts = arguments.Split(' '); - if (parts.Length < 2 || parts[0] != "chat") - return; - - switch (parts[1]) + switch (arguments) { case "hide": CurrentHideState = HideState.User;