From 7f03e650dfed0157c434274bfccf49e05497d789 Mon Sep 17 00:00:00 2001 From: signedav Date: Wed, 27 Nov 2024 12:23:08 +0100 Subject: [PATCH] option to hide the systemlayers (not remove them from project, because they are still needed in the relations etc. just don't load them in the layertree --- modelbaker/generator/generator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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") )