mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 20:02:27 +00:00
Added Names for Copy actions
This commit is contained in:
@@ -129,7 +129,11 @@
|
|||||||
KPKGroup *targetGroup = (KPKGroup *)targetItem;
|
KPKGroup *targetGroup = (KPKGroup *)targetItem;
|
||||||
if(draggedGroup) {
|
if(draggedGroup) {
|
||||||
if(copyItem || (nil == self.localDraggedGroup) ) {
|
if(copyItem || (nil == self.localDraggedGroup) ) {
|
||||||
|
/* Add Copy to title */
|
||||||
|
NSString *copyTemplate = NSLocalizedString(@"%@_COPY", "");
|
||||||
|
draggedGroup.name = [NSString stringWithFormat:copyTemplate, draggedGroup.name];
|
||||||
[targetGroup addGroup:draggedGroup atIndex:index];
|
[targetGroup addGroup:draggedGroup atIndex:index];
|
||||||
|
[targetGroup.undoManager setActionName:NSLocalizedString(@"COPY_GROUP", "")];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
else if(self.localDraggedGroup) {
|
else if(self.localDraggedGroup) {
|
||||||
@@ -143,7 +147,10 @@
|
|||||||
}
|
}
|
||||||
else if(draggedEntry) {
|
else if(draggedEntry) {
|
||||||
if(copyItem || (nil == self.localDraggedEntry)) {
|
if(copyItem || (nil == self.localDraggedEntry)) {
|
||||||
|
NSString *copyTemplate = NSLocalizedString(@"%@_COPY", "");
|
||||||
|
draggedEntry.title = [NSString stringWithFormat:copyTemplate, draggedEntry.title];
|
||||||
[targetGroup addEntry:draggedEntry atIndex:index];
|
[targetGroup addEntry:draggedEntry atIndex:index];
|
||||||
|
[targetGroup.undoManager setActionName:NSLocalizedString(@"COPY_ENTRY", "")];
|
||||||
return YES;
|
return YES;
|
||||||
}
|
}
|
||||||
else if(self.localDraggedEntry) {
|
else if(self.localDraggedEntry) {
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user