GUI: Add foolproof check for repo_group value not allowed in group

This commit is contained in:
deajan 2024-09-06 15:37:28 +02:00
parent 66ab12dd89
commit 6e425d1e6e

View file

@ -707,7 +707,9 @@ def config_gui(full_config: dict, config_file: str):
value.remove(entry)
# check if value is inherited from group, and if so, delete it from repo config
if full_config.g(inheritance_key) == value:
# Also add a foolproof test since people could add repo_group to a group config
# We're not allowing recursive groups !
if full_config.g(inheritance_key) == value and key != "repo_group":
full_config.d(active_object_key)
continue
# we also need to compare inherited values with current values for BytesConverter values