Skip to content

Commit

Permalink
Merge pull request #924 from opengisch/localized_fix
Browse files Browse the repository at this point in the history
Fix localized path regression
  • Loading branch information
suricactus committed Apr 23, 2024
2 parents d260ff9 + e6a4114 commit ca4ea0c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docker-qgis/qfc_worker/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
from typing import IO, Any, Callable, NamedTuple, Optional

from libqfieldsync.layer import LayerSource
from libqfieldsync.utils.bad_layer_handler import set_bad_layer_handler
from libqfieldsync.utils.bad_layer_handler import (
bad_layer_handler,
set_bad_layer_handler,
)
from qfieldcloud_sdk import sdk
from qgis.core import (
Qgis,
Expand Down Expand Up @@ -186,6 +189,9 @@ def exitQgis():

logging.info("QGIS app started!")

# we set the `bad_layer_handler` and assume we always have only one single `QgsProject` instance within the job's life
QgsProject.instance().setBadLayerHandler(bad_layer_handler)

return QGISAPP


Expand Down

0 comments on commit ca4ea0c

Please sign in to comment.