if (_taskQueue.Count > 0)
_taskQueue.Clear();
- _yesAlreadyIpc.DisableYesAlready();
+ _yesAlreadyIpc.RestoreYesAlready();
}
public void Stop(string label, bool continueIfAutomatic = false)
public void DisableYesAlready()
{
- _pluginLog.Debug("Disabling YesAlready");
- if (_pluginInterface.TryGetData<HashSet<string>>("YesAlready.StopRequests", out var data))
+ if (_pluginInterface.TryGetData<HashSet<string>>("YesAlready.StopRequests", out var data) &&
+ !data.Contains(nameof(Questionable)))
+ {
+ _pluginLog.Debug("Disabling YesAlready");
data.Add(nameof(Questionable));
+ }
}
public void RestoreYesAlready()
{
- _pluginLog.Debug("Restoring YesAlready");
- if (_pluginInterface.TryGetData<HashSet<string>>("YesAlready.StopRequests", out var data))
+ if (_pluginInterface.TryGetData<HashSet<string>>("YesAlready.StopRequests", out var data) &&
+ data.Contains(nameof(Questionable)))
+ {
+ _pluginLog.Debug("Restoring YesAlready");
data.Remove(nameof(Questionable));
+ }
}
public void Dispose() => RestoreYesAlready();
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
- <Version>0.16</Version>
+ <Version>0.17</Version>
<LangVersion>12</LangVersion>
<Nullable>enable</Nullable>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>