Skip to content

Commit

Permalink
Fix line length too long in tooltip.py from the server side
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Sep 24, 2024
1 parent 7c165d0 commit 85ac539
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lizmap/tooltip.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,9 +210,11 @@ def create_popup_node_item_from_form(
if lvl > 0:
a += h
continue
# TODO QGIS_VERSION_INT 3.30.0
# Change the integer with the QGIS enum `Qgis.AttributeEditorType.TextElement`
is_editor_element = isinstance(n, QgsAttributeEditorElement) and n.type() == 6
# If it is root children, store html in the right list
if isinstance(n, QgsAttributeEditorField) or (isinstance(n, QgsAttributeEditorElement) and n.type() == 6):
# TODO QGIS_VERSION_INT 3.30.0 Change the integer with the QGIS enum `Qgis.AttributeEditorType.TextElement`
if isinstance(n, QgsAttributeEditorField) or is_editor_element:
if not headers:
before_tabs.append(h)
else:
Expand Down

0 comments on commit 85ac539

Please sign in to comment.