Skip to content

Commit e709401

Browse files
prculleyNick-Hall
authored andcommitted
Avoid multiple copies of Rules after Plugin manager reload
Fixes #13844.
1 parent 5fe8ebd commit e709401

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gramps/gen/plug/_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,8 @@ def reg_plugins(
227227
# make the new rule findable via import statements
228228
setattr(obj_rules, plugin.ruleclass, r_class)
229229
# and add it to the correct fiter editor list
230-
obj_rules.editor_rule_list.append(r_class)
230+
if r_class not in obj_rules.editor_rule_list:
231+
obj_rules.editor_rule_list.append(r_class)
231232

232233
def is_loaded(self, pdata_id):
233234
"""

0 commit comments

Comments
 (0)