diff --git a/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py b/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py index b7699f448..8d0eb1a43 100644 --- a/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py +++ b/QgisModelBaker/gui/workflow_wizard/import_schema_configuration_page.py @@ -27,6 +27,7 @@ from qgis.PyQt.QtWidgets import QCompleter, QWizardPage from QgisModelBaker.gui.ili2db_options import Ili2dbOptionsDialog +from QgisModelBaker.libs.modelbaker.iliwrapper.globals import DbIliMode from QgisModelBaker.libs.modelbaker.iliwrapper.ilicache import ( IliDataCache, IliDataFileCompleterDelegate, @@ -158,8 +159,6 @@ def _update_models_dependent_info(self): - Calls update of ilireferencedata cache to load referenced """ model_list = self.model_list_view.model().checked_models() - if set(model_list) == set(self.current_models): - return self.current_models = model_list for pattern, crs in CRS_PATTERNS.items(): if re.search(pattern, ", ".join(model_list)): @@ -173,6 +172,11 @@ def _update_ilimetaconfigcache(self): self.ilimetaconfigcache = IliDataCache( self.workflow_wizard.import_schema_configuration.base_configuration, models=";".join(self.model_list_view.model().checked_models()), + datasources=["pg"] + if (self.workflow_wizard.import_schema_configuration.tool & DbIliMode.pg) + else ["gpkg"] + if (self.workflow_wizard.import_schema_configuration.tool & DbIliMode.gpkg) + else None, ) self.ilimetaconfigcache.file_download_succeeded.connect( lambda dataset_id, path: self._on_metaconfig_received(path)