diff --git a/modelbaker/generator/generator.py b/modelbaker/generator/generator.py index 92b42d7..b859f02 100644 --- a/modelbaker/generator/generator.py +++ b/modelbaker/generator/generator.py @@ -735,6 +735,7 @@ def legend( ignore_node_names=None, layertree_structure=None, path_resolver=lambda path: path, + hide_systemlayers=False, ): legend = LegendGroup( QCoreApplication.translate("LegendGroup", "root"), @@ -793,7 +794,7 @@ def legend( for layer in domain_layers: domains.append(layer) legend.append(domains) - if len(system_layers): + if len(system_layers) and not hide_systemlayers: system = LegendGroup( QCoreApplication.translate("LegendGroup", "system") )