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 17, 2024
1 parent fd06f07 commit 42fa607
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 @@ -613,16 +613,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 42fa607

Please sign in to comment.