Skip to content

Commit

Permalink
Don't trigger delta file wrapper check for non-cloud projects
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Aug 18, 2023
1 parent f39a822 commit e34b658
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/qml/NavigationBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,14 @@ Rectangle {
editButton.supportsEditing = selection.focusedLayer && selection.focusedLayer.supportsEditing
}
function onFocusedFeatureChanged() {
editButton.isCreatedCloudFeature = cloudProjectsModel.layerObserver.deltaFileWrapper.isCreatedFeature(
selection.focusedLayer,
selection.focusedFeature
)
if (QFieldCloudUtils.getProjectId(qgisProject.fileName) != '') {
editButton.isCreatedCloudFeature = cloudProjectsModel.layerObserver.deltaFileWrapper.isCreatedFeature(
selection.focusedLayer,
selection.focusedFeature
)
} else {
editButton.isCreatedCloudFeature = false
}
}
}
}
Expand Down

1 comment on commit e34b658

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.