diff --git a/MacPass/EntryView.xib b/MacPass/EntryView.xib index 013df60d..664096b8 100644 --- a/MacPass/EntryView.xib +++ b/MacPass/EntryView.xib @@ -58,6 +58,7 @@ {{7, 5}, {32, 19}} + _NS:9 YES @@ -107,7 +108,7 @@ {684, 548} - + _NS:13 YES NO @@ -392,7 +393,7 @@ {{0, 30}, {684, 565}} - + _NS:9 133680 @@ -1467,22 +1468,6 @@ 690 - - - 5 - 0 - - 5 - 1 - - 7 - - 1000 - - 9 - 40 - 3 - 10 @@ -1499,6 +1484,22 @@ 22 2 + + + 5 + 0 + + 5 + 1 + + 7 + + 1000 + + 9 + 40 + 3 + 8 @@ -1573,11 +1574,6 @@ - - 736 - - - 741 @@ -1588,6 +1584,11 @@ + + 774 + + + @@ -1726,8 +1727,8 @@ com.apple.InterfaceBuilder.CocoaPlugin - + com.apple.InterfaceBuilder.CocoaPlugin @@ -1742,15 +1743,15 @@ com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin - com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin com.apple.InterfaceBuilder.CocoaPlugin + com.apple.InterfaceBuilder.CocoaPlugin - 745 + 778 @@ -1776,6 +1777,7 @@ NSButton NSButton NSButton + NSImageView NSLayoutConstraint @@ -1819,6 +1821,10 @@ filterUsernameButton NSButton + + readOnlyImageView + NSImageView + tableToTop NSLayoutConstraint diff --git a/MacPass/MPDocument.m b/MacPass/MPDocument.m index 4d656c4e..3f097e9e 100644 --- a/MacPass/MPDocument.m +++ b/MacPass/MPDocument.m @@ -123,6 +123,7 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey"; else { [[NSFileManager defaultManager] createFileAtPath:[_lockFileURL path] contents:nil attributes:nil]; _didLockFile = YES; + self.readOnly = NO; } self.decrypted = NO; return YES; @@ -146,11 +147,6 @@ NSString *const MPDocumentGroupKey = @"MPDocumentGroupKey"; [super close]; } -- (BOOL)validateUserInterfaceItem:(id)anItem { - NSLog(@"Validating %@", anItem); - return YES; -} - #pragma mark Protection - (BOOL)decryptWithPassword:(NSString *)password keyFileURL:(NSURL *)keyFileURL { diff --git a/MacPass/MPDocumentWindowController.m b/MacPass/MPDocumentWindowController.m index 2bfa07dd..781c4f95 100644 --- a/MacPass/MPDocumentWindowController.m +++ b/MacPass/MPDocumentWindowController.m @@ -181,9 +181,8 @@ NSString *const MPCurrentItemChangedNotification = @"com.hicknhack.macpass.MPCur } - (BOOL)validateToolbarItem:(NSToolbarItem *)theItem { - NSLog(@"Validate ToolbarItem: %@", theItem); MPDocument *document = [self document]; - if(document.isLocked) { + if(document.isLocked || document.isReadOnly) { return NO; } SEL itemAction = [theItem action]; diff --git a/MacPass/MPEntryViewController.m b/MacPass/MPEntryViewController.m index 43a231a3..6d21784d 100644 --- a/MacPass/MPEntryViewController.m +++ b/MacPass/MPEntryViewController.m @@ -124,6 +124,7 @@ NSString *const _toggleFilterUsernameButton = @"SearchUsername"; - (void)didLoadView { [self.view setWantsLayer:YES]; [self _hideFilterBarAnimated:NO]; + [_bottomBar setBorderType:HNHBorderTop]; [self.addEntryButton setAction:[MPActionHelper actionOfType:MPActionAddEntry]]; diff --git a/MacPass/MacPass-Info.plist b/MacPass/MacPass-Info.plist index 9fe76b7f..4d1375bf 100644 --- a/MacPass/MacPass-Info.plist +++ b/MacPass/MacPass-Info.plist @@ -48,7 +48,7 @@ CFBundleSignature ???? CFBundleVersion - 1224 + 1244 LSMinimumSystemVersion ${MACOSX_DEPLOYMENT_TARGET} NSHumanReadableCopyright