From 12a0df0787878c797c3e38d21f0a0e4b1b06e381 Mon Sep 17 00:00:00 2001 From: signedav Date: Thu, 30 Nov 2023 14:17:03 +0100 Subject: [PATCH] concern preferredDataSource on usabilityhub category --- .../workflow_wizard/import_schema_configuration_page.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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)