muffin v7.4.8
This commit is contained in:
parent
63f975ff4f
commit
a9e1cdc5f1
4 changed files with 932 additions and 880 deletions
|
|
@ -125,6 +125,7 @@ internal sealed class AutoDutyIpc
|
|||
}
|
||||
try
|
||||
{
|
||||
_setConfig.InvokeAction("leveling", "None");
|
||||
_setConfig.InvokeAction("Unsynced", $"{dutyMode == DutyMode.UnsyncRegular}");
|
||||
ICallGateSubscriber<string, string, object> setConfig = _setConfig;
|
||||
setConfig.InvokeAction("dutyModeEnum", dutyMode switch
|
||||
|
|
@ -182,16 +183,36 @@ internal sealed class AutoDutyIpc
|
|||
}
|
||||
}
|
||||
|
||||
public void DisableLevelingMode()
|
||||
{
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("Disabling AutoDuty leveling mode");
|
||||
_setConfig.InvokeAction("leveling", "None");
|
||||
}
|
||||
catch (IpcError ipcError)
|
||||
{
|
||||
_logger.LogWarning("Unable to disable AutoDuty leveling mode: {Message}", ipcError.Message);
|
||||
}
|
||||
}
|
||||
|
||||
public void Stop()
|
||||
{
|
||||
try
|
||||
{
|
||||
_logger.LogInformation("Calling AutoDuty.Stop");
|
||||
try
|
||||
{
|
||||
_setConfig.InvokeAction("leveling", "None");
|
||||
}
|
||||
catch (IpcError)
|
||||
{
|
||||
}
|
||||
_stop.InvokeAction();
|
||||
}
|
||||
catch (IpcError ipcError)
|
||||
catch (IpcError ipcError2)
|
||||
{
|
||||
throw new TaskException("Unable to stop AutoDuty: " + ipcError.Message, ipcError);
|
||||
throw new TaskException("Unable to stop AutoDuty: " + ipcError2.Message, ipcError2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue