mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-22 18:49:27 +00:00
Added entry images to menu items and shortened label (closes #904)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
#import "MPDocument.h"
|
||||
#import "MPDocumentWindowController.h"
|
||||
#import "MPActionHelper.h"
|
||||
#import "KPKNode+IconImage.h"
|
||||
|
||||
#import "KeePassKit/KeePassKit.h"
|
||||
|
||||
@@ -47,6 +48,8 @@
|
||||
NSMenuItem *templateItem = [[NSMenuItem alloc] initWithTitle:[NSString stringWithFormat:templateMask, entry.title]
|
||||
action:@selector(createEntryFromTemplate:)
|
||||
keyEquivalent:@""];
|
||||
templateItem.image = [entry.iconImage copy];
|
||||
templateItem.image.size = NSMakeSize(14, 14);
|
||||
templateItem.representedObject = entry.uuid;
|
||||
[menu addItem:templateItem];
|
||||
}
|
||||
|
||||
@@ -433,7 +433,7 @@
|
||||
"NEW_ENTRY" = "Neuer Eintrag";
|
||||
|
||||
/* Submenu to add an entry via template */
|
||||
"NEW_ENTRY_WITH_TEMPLATE_%@" = "Neuer Eintrag aus Vorlage %@";
|
||||
"NEW_ENTRY_WITH_TEMPLATE_%@" = "mit %@";
|
||||
|
||||
/* Action name for a newly created group
|
||||
Menu item to create a new group
|
||||
|
||||
@@ -433,7 +433,7 @@
|
||||
"NEW_ENTRY" = "New Entry";
|
||||
|
||||
/* Submenu to add an entry via template */
|
||||
"NEW_ENTRY_WITH_TEMPLATE_%@" = "Create Entry with Template %@";
|
||||
"NEW_ENTRY_WITH_TEMPLATE_%@" = "from %@";
|
||||
|
||||
/* Action name for a newly created group
|
||||
Menu item to create a new group
|
||||
|
||||
Reference in New Issue
Block a user