Skip to content

Commit 404dde0

Browse files
committed
Fix project flags enum
1 parent b830a70 commit 404dde0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libqfieldsync/offline_converter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,10 +221,10 @@ def _convert(self, project: QgsProject) -> None: # noqa: PLR0912, PLR0915
221221

222222
# Set flags that usually significantly speed-up project file read
223223
read_flags = QgsProject.ReadFlags()
224-
read_flags |= QgsProject.ReadFlag.FlagDontResolveLayers
225-
read_flags |= QgsProject.ReadFlag.FlagDontLoadLayouts
224+
read_flags |= QgsProject.ReadFlag.DontResolveLayers
225+
read_flags |= QgsProject.ReadFlag.DontLoadLayouts
226226
if Qgis.versionInt() >= 32600: # noqa: PLR2004
227-
read_flags |= QgsProject.ReadFlag.FlagDontLoad3DViews
227+
read_flags |= QgsProject.ReadFlag.DontLoad3DViews
228228

229229
# Make a new function object that we can connect and disconnect easily
230230
on_original_project_read = self._on_original_project_read_wrapper(

0 commit comments

Comments
 (0)