mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-13 18:04:15 +01:00
Slash command - remove duplicate codepath
This commit is contained in:
parent
630f958bd2
commit
0bafb510af
1 changed files with 2 additions and 8 deletions
|
|
@ -201,15 +201,9 @@ namespace MareSynchronos
|
||||||
|
|
||||||
private void OnCommand(string command, string args)
|
private void OnCommand(string command, string args)
|
||||||
{
|
{
|
||||||
if (string.IsNullOrEmpty(args))
|
var splitArgs = args?.ToLowerInvariant().Trim().Split();
|
||||||
{
|
|
||||||
OpenUi();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var splitArgs = args.ToLowerInvariant().Trim().Split();
|
if (splitArgs == null || splitArgs.Length == 0)
|
||||||
|
|
||||||
if (splitArgs.Length == 0)
|
|
||||||
{
|
{
|
||||||
// Interpret this as toggling the UI
|
// Interpret this as toggling the UI
|
||||||
OpenUi();
|
OpenUi();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue