Skip to content

Commit

Permalink
DataCatalog: different message for moving and copying (#3752)
Browse files Browse the repository at this point in the history
Use more straightforward messages for moving and copying layers in the Data Catalog.
  • Loading branch information
ninsbl committed May 31, 2024
1 parent df949ca commit bd3239f
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions gui/wxpython/datacatalog/tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -1339,9 +1339,13 @@ def OnPasteMap(self, event):
if pasted == 0:
Debug.msg(1, "COPIED TO: " + new_name)
if self.copy_mode:
self.showNotification.emit(message=_("g.copy completed"))
self.showNotification.emit(message=_("Copying completed"))
else:
self.showNotification.emit(message=_("g.copy completed"))
# remove old
self._removeMapAfterCopy(
self.copy_layer[i], self.copy_mapset[i], env2
)
self.showNotification.emit(message=_("Moving completed"))
self._giface.grassdbChanged.emit(
grassdb=self.selected_grassdb[0].data["name"],
location=self.selected_location[0].data["name"],
Expand All @@ -1350,11 +1354,6 @@ def OnPasteMap(self, event):
element=node,
action="new",
)
# remove old
if not self.copy_mode:
self._removeMapAfterCopy(
self.copy_layer[i], self.copy_mapset[i], env2
)

gscript.try_remove(gisrc)
gscript.try_remove(gisrc2)
Expand Down

0 comments on commit bd3239f

Please sign in to comment.