Fix `AssemblyRulesetStore` not marking rulesets as available

This commit is contained in:
Dean Herbert 2024-06-02 17:33:06 +09:00
parent f1689d542e
commit 091104764e
No known key found for this signature in database
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ public AssemblyRulesetStore(Storage? storage = null)
// add all legacy rulesets first to ensure they have exclusive choice of primary key.
foreach (var r in instances.Where(r => r is ILegacyRuleset))
availableRulesets.Add(new RulesetInfo(r.RulesetInfo.ShortName, r.RulesetInfo.Name, r.RulesetInfo.InstantiationInfo, r.RulesetInfo.OnlineID));
{
availableRulesets.Add(new RulesetInfo(r.RulesetInfo.ShortName, r.RulesetInfo.Name, r.RulesetInfo.InstantiationInfo, r.RulesetInfo.OnlineID)
{
Available = true
});
}
}
}
}