Fix reading rules multiple times (#10925)

This commit is contained in:
Kevin Zheng
2022-08-29 22:00:06 -07:00
committed by GitHub
parent f7b1a3e9fb
commit 4813a719ba

View File

@@ -83,10 +83,7 @@ public sealed class RulesManager : SharedRulesManager
public Control RulesSection()
{
if (rulesSection.Disposed)
{
rulesSection = new InfoSection("", "", false);
}
rulesSection = new InfoSection("", "", false);
UpdateRules();
return rulesSection;
}