Skip to content

Commit

Permalink
Use the new QgisCoreOffliner that wraps QgsOfflineEditing
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jan 14, 2024
1 parent 856d0b5 commit 8744e3b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions qfieldsync/gui/package_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

from libqfieldsync.layer import LayerSource
from libqfieldsync.offline_converter import ExportType, OfflineConverter
from libqfieldsync.offliners import QgisCoreOffliner
from libqfieldsync.project import ProjectConfiguration
from libqfieldsync.project_checker import ProjectChecker
from libqfieldsync.utils.file_utils import fileparts
Expand Down Expand Up @@ -53,7 +54,7 @@ def __init__(self, iface, project, offline_editing, parent=None):
self.setupUi(self)

self.iface = iface
self.offline_editing = offline_editing
self.offliner = QgisCoreOffliner(offline_editing=offline_editing)
self.project = project
self.qfield_preferences = Preferences()
self.dirsToCopyWidget = DirsToCopyWidget()
Expand Down Expand Up @@ -82,7 +83,7 @@ def __init__(self, iface, project, offline_editing, parent=None):
# self.refresh_devices()
self.setup_gui()

self.offline_editing.warning.connect(self.show_warning)
self.offliner.warning.connect(self.show_warning)

def update_progress(self, sent, total):
progress = float(sent) / total * 100
Expand Down Expand Up @@ -159,7 +160,7 @@ def package_project(self):
area_of_interest,
area_of_interest_crs,
self.qfield_preferences.value("attachmentDirs"),
self.offline_editing,
self.offliner,
ExportType.Cable,
dirs_to_copy=self.dirsToCopyWidget.dirs_to_copy(),
)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ pytest
future
transifex-client

libqfieldsync @ https://github.com/opengisch/libqfieldsync/archive/a6162194f5b7e2448da26d3cf67ed542653c4012.tar.gz
libqfieldsync @ git+https://github.com/opengisch/libqfieldsync@4ba790aa2cd57072c61d766e01e2c0e74b09507d

0 comments on commit 8744e3b

Please sign in to comment.