Skip to content

Commit

Permalink
Fix loading of the plugin if no webdav is available fix #584
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jun 27, 2024
1 parent f6e2a94 commit 561c368
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lizmap/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,6 @@ def check_webdav(self):
""" Check if we can enable or the webdav, according to the current selected server. """
# I hope temporary, to force the version displayed
self.dlg.refresh_helper_target_version(self.current_lwc_version())
self.webdav.config_project()
# LOGGER.critical(type(self.webdav))

def disable_upload_panel():
self.dlg.mOptionsListWidget.item(Panels.Upload).setHidden(True)
Expand All @@ -1195,6 +1193,8 @@ def disable_upload_panel():
# LOGGER.critical("RETURN 1")
return

self.webdav.config_project()

# The dialog is already given.
# We can check if WebDAV is supported.
# LOGGER.critical("Second check : {}".format(self.webdav.setup_webdav_dialog()))
Expand Down

0 comments on commit 561c368

Please sign in to comment.