Skip to content

Commit

Permalink
Make direct access available only for remote layers or localized layers
Browse files Browse the repository at this point in the history
Fix non-localized file based layers configurable as "direct access" for
qfieldcloud.
  • Loading branch information
suricactus committed Apr 18, 2024
1 parent 062f4b9 commit f7b5984
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions libqfieldsync/layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,16 +615,7 @@ def available_cloud_actions(self):
)

# only online layers support direct access, e.g. PostGIS or WFS
if not (self.is_file and not self.is_localized_path):
actions.append(
(
SyncAction.NO_ACTION,
QCoreApplication.translate(
"LayerAction", "Directly access data source"
),
)
)
elif self.is_file and not self.is_localized_path:
if self.is_localized_path or not self.is_file:
actions.append(
(
SyncAction.NO_ACTION,
Expand Down

0 comments on commit f7b5984

Please sign in to comment.