Skip to content

Commit

Permalink
Remove the Zoom history option for LWC 3.8 fix #573
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed May 3, 2024
1 parent e892d8a commit 2adc859
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1084,10 +1084,14 @@ def lwc_version_changed(self):
self.dlg.refresh_helper_target_version(current_version)

# New print panel
# The checkbox is deprecated since LWC 3.7.0
# The checkbox is removed since LWC 3.7.0
self.dlg.cbActivatePrint.setVisible(current_version <= LwcVersions.Lizmap_3_6)
self.dlg.cbActivatePrint.setEnabled(current_version <= LwcVersions.Lizmap_3_6)

# The checkbox is removed since LWC 3.8.0
self.dlg.cbActivateZoomHistory.setVisible(current_version <= LwcVersions.Lizmap_3_7)
self.dlg.cbActivateZoomHistory.setEnabled(current_version <= LwcVersions.Lizmap_3_7)

found = False
for lwc_version, items in self.lwc_versions.items():
if found:
Expand Down

0 comments on commit 2adc859

Please sign in to comment.