Skip to content

Commit

Permalink
Switch from Overview to overview for the group name
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jul 27, 2023
1 parent 301c006 commit 717f013
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2009,7 +2009,7 @@ def process_node(self, node, parent_node, json_layers):
predefined_group = PredefinedGroup.Hidden.value
if self.myDic[child_id]['name'] == 'baselayers':
predefined_group = PredefinedGroup.Baselayers.value
if self.myDic[child_id]['name'] == 'Overview':
if self.myDic[child_id]['name'].lower() == 'overview':
predefined_group = PredefinedGroup.Overview.value

elif parent_node.data(0, Qt.UserRole + 1) != PredefinedGroup.No.value:
Expand Down Expand Up @@ -2317,7 +2317,10 @@ def add_group_empty(self):

def add_group_overview(self):
""" Add the overview group. """
self._add_group_legend('Overview')
label = 'overview'
if self.dlg.current_lwc_version() < LwcVersions.Lizmap_3_7:
label = 'Overview'
self._add_group_legend(label)

@staticmethod
def string_to_list(text):
Expand Down

0 comments on commit 717f013

Please sign in to comment.