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;