Skip to content

Commit

Permalink
concern preferredDataSource on usabilityhub category
Browse files Browse the repository at this point in the history
  • Loading branch information
signedav committed Nov 30, 2023
1 parent 3e9ed4e commit 12a0df0
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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)):
Expand All @@ -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)
Expand Down

0 comments on commit 12a0df0

Please sign in to comment.