1
0
forked from liza/Deliveroo

Add command line arguments to enable/disable the turn in

This commit is contained in:
Liza 2023-10-11 13:23:08 +02:00
parent ca8f30404a
commit 9889e89fc7
Signed by: liza
GPG Key ID: 7199F8D727D55F67

View File

@ -309,5 +309,22 @@ public sealed partial class DeliverooPlugin : IDalamudPlugin
_externalPluginHandler.Restore(); _externalPluginHandler.Restore();
} }
private void ProcessCommand(string command, string arguments) => _configWindow.Toggle(); private void ProcessCommand(string command, string arguments)
{
switch (arguments)
{
case "e" or "enable":
if (_turnInWindow.IsOpen)
_turnInWindow.State = true;
break;
case "d" or "disable":
_turnInWindow.State = false;
break;
default:
_configWindow.Toggle();
break;
}
}
} }