Skip to content

Commit

Permalink
add parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
ValentinBuira committed Jan 30, 2025
1 parent d20edd7 commit f7bb406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Mergin/version_viewer_dialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,15 +614,15 @@ def add_current_to_project(self):
if self.current_diff:
lyr_clone = QgsVectorLayer(
self.current_diff.source(),
self.current_diff.name() + f" {self.version_details['name']}",
self.current_diff.name() + f" ({self.version_details['name']})",
self.current_diff.providerType(),
)
QgsProject.instance().addMapLayer(lyr_clone)

def add_all_to_project(self):
for layer in self.diff_layers:
lyr_clone = QgsVectorLayer(
layer.source(), layer.name() + f" {self.version_details['name']}", layer.providerType()
layer.source(), layer.name() + f" ({self.version_details['name']})", layer.providerType()
)
QgsProject.instance().addMapLayer(lyr_clone)

Expand Down

0 comments on commit f7bb406

Please sign in to comment.