Compare commits

..

1 Commits

Author SHA1 Message Date
2248356998 qq.com
44c3c4b30a fix: 变量表格清空时传入null参数错误 2025-11-03 10:59:39 +08:00
3 changed files with 5 additions and 4 deletions

View File

@@ -65,6 +65,7 @@ public static class DictionaryExtensions
this IDictionary<TKey, TValue> dictionary,
IEnumerable<TKey> keys)
{
if(keys==null) yield break;
foreach (var key in keys)
{
if (dictionary.TryGetValue(key, out var value))

View File

@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<PluginVersion>10.12.27</PluginVersion>
<ProPluginVersion>10.12.27</ProPluginVersion>
<DefaultVersion>10.12.27</DefaultVersion>
<PluginVersion>10.12.28</PluginVersion>
<ProPluginVersion>10.12.28</ProPluginVersion>
<DefaultVersion>10.12.28</DefaultVersion>
<AuthenticationVersion>10.11.7</AuthenticationVersion>
<SourceGeneratorVersion>10.11.7</SourceGeneratorVersion>
<NET8Version>8.0.21</NET8Version>

View File

@@ -189,7 +189,7 @@ public class VariableRuntimeService : IVariableRuntimeService
{
// await WaitLock.WaitAsync().ConfigureAwait(false);
var result = await GlobalData.VariableService.DeleteVariableAsync(null).ConfigureAwait(false);
var result = await GlobalData.VariableService.DeleteVariableAsync(GlobalData.IdVariables.Keys).ConfigureAwait(false);
ConcurrentHashSet<IDriver> changedDriver = new();
var variableIds = GlobalData.IdVariables.Select(a => a.Key).ToHashSet();