mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 22:42:18 +00:00
Updated translations
Added note to run auto type fix for any newly opened file
This commit is contained in:
@@ -66,6 +66,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
@interface MPEntryViewController () {
|
||||
MPEntryContextMenuDelegate *_menuDelegate;
|
||||
BOOL _isDisplayingContextBar;
|
||||
BOOL _showFooterInfo;
|
||||
}
|
||||
|
||||
@property (strong) NSArrayController *entryArrayController;
|
||||
@@ -81,6 +82,8 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
@property (weak) IBOutlet HNHGradientView *bottomBar;
|
||||
@property (weak) IBOutlet NSButton *addEntryButton;
|
||||
|
||||
@property (weak) IBOutlet NSTextField *footerInfoText;
|
||||
|
||||
@property (nonatomic, strong) MPEntryTableDataSource *dataSource;
|
||||
|
||||
@end
|
||||
@@ -188,6 +191,9 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
|
||||
[self _setupHeaderMenu];
|
||||
[parentColumn setHidden:YES];
|
||||
|
||||
[self.footerInfoText setHidden:!_showFooterInfo];
|
||||
[self.footerInfoText setStringValue:NSLocalizedString(@"DOCUMENT_AUTOTYPE_CORRUPTION_WARNING", "")];
|
||||
}
|
||||
|
||||
- (NSResponder *)reconmendedFirstResponder {
|
||||
@@ -217,6 +223,22 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
|
||||
|
||||
[self.contextBarViewController registerNotificationsForDocument:document];
|
||||
|
||||
/* Setup warning message at the bottom*/
|
||||
NSArray *array = [[NSUserDefaults standardUserDefaults] arrayForKey:kMPSettingsKeyDocumentsAutotypeFixNoteWasShown];
|
||||
NSString *path = [[document fileURL] path];
|
||||
if(!path) {
|
||||
return; // No path, nothing to do
|
||||
}
|
||||
if(![array containsObject:path]) {
|
||||
array = array ? [array arrayByAddingObject:path] : @[path];
|
||||
[[NSUserDefaults standardUserDefaults] setObject:array forKey:kMPSettingsKeyDocumentsAutotypeFixNoteWasShown];
|
||||
[[NSUserDefaults standardUserDefaults] synchronize];
|
||||
_showFooterInfo = YES;
|
||||
}
|
||||
else {
|
||||
_showFooterInfo = NO;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark NSTableViewDelgate
|
||||
|
||||
Reference in New Issue
Block a user