Skip to content

Commit

Permalink
Force refresh the UI according to LWC version
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Feb 14, 2024
1 parent 1aa2fbe commit 9bcfeb1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,7 @@ def write_log_message(message, tag, level):
self.dlg.server_combo.currentIndexChanged.connect(self.target_server_changed)
self.dlg.repository_combo.currentIndexChanged.connect(self.target_repository_changed)
self.target_server_changed()
self.lwc_version_changed()
self.dlg.refresh_combo_repositories()

self.dlg.tab_dataviz.setCurrentIndex(0)
Expand Down Expand Up @@ -3865,6 +3866,8 @@ def save_cfg_file(

if not lwc_version:
lwc_version = self.current_lwc_version()
# Let's trigger UI refresh according to latest releases, if it wasn't available on startup
self.lwc_version_changed()

defined_env_target = os.getenv('LIZMAP_TARGET_VERSION')
if defined_env_target:
Expand Down

0 comments on commit 9bcfeb1

Please sign in to comment.