diff --git a/MacPass/MPPluginRepositoryBrowserViewController.m b/MacPass/MPPluginRepositoryBrowserViewController.m index 096de07b..59843621 100644 --- a/MacPass/MPPluginRepositoryBrowserViewController.m +++ b/MacPass/MPPluginRepositoryBrowserViewController.m @@ -13,6 +13,7 @@ #import "MPPluginRepositoryItem.h" #import "MPPluginVersionComparator.h" #import "MPPluginStatusTableCellView.h" +#import "MPSettingsHelper.h" typedef NS_ENUM(NSUInteger, MPPluginTableColumn) { @@ -39,7 +40,13 @@ typedef NS_ENUM(NSUInteger, MPPluginTableColumn) { - (void)viewDidLoad { [super viewDidLoad]; self.downloadedItems = [[NSMutableSet alloc] init]; - [self.updatedAtTextField bind:NSValueBinding toObject:MPPluginRepository.defaultRepository withKeyPath:NSStringFromSelector(@selector(updatedAt)) options:nil]; + BOOL allowRemoteData = [NSUserDefaults.standardUserDefaults boolForKey:kMPSettingsKeyAllowRemoteFetchOfPluginRepository]; + if(allowRemoteData) { + [self.updatedAtTextField bind:NSValueBinding toObject:MPPluginRepository.defaultRepository withKeyPath:NSStringFromSelector(@selector(updatedAt)) options:nil]; + } + else { + self.updatedAtTextField.stringValue = NSLocalizedString(@"REPOSITORY_UPDATED_AT_LOCAL", @"Updated at text when the local plugin defintino is used"); + } [self _refreshRepository]; } diff --git a/MacPass/en.lproj/Localizable.strings b/MacPass/en.lproj/Localizable.strings index f34cb98b..4609ecd0 100644 --- a/MacPass/en.lproj/Localizable.strings +++ b/MacPass/en.lproj/Localizable.strings @@ -632,6 +632,9 @@ /* Message text for the recommend password change alert */ "RECOMMEND_PASSWORD_CHANGE_ALERT_TITLE" = "Please change the database password!"; +/* Updated at text when the local plugin defintino is used */ +"REPOSITORY_UPDATED_AT_LOCAL" = "Never (using bundled version)"; + /* Restart */ "RESTART" = "Restart";