Localized inconpatible plugins alert. Added ability to open a dedicated preferences pane

This commit is contained in:
Michael Starke
2019-02-11 14:06:12 +01:00
parent 00362bf33c
commit 37ea36c8a6
10 changed files with 63 additions and 39 deletions

View File

@@ -227,11 +227,20 @@ NSString *const MPDidChangeStoredKeyFilesSettings = @"com.hicknhack.macpass.MPDi
#pragma mark -
#pragma mark Actions
- (void)showPluginPrefences:(id)sender {
[self _showPreferencesTab:MPPreferencesTabPlugins];
}
- (void)showPreferences:(id)sender {
[self _showPreferencesTab:MPPreferencesTabGeneral];
}
- (void)_showPreferencesTab:(MPPreferencesTab)tab {
if(self.preferencesController == nil) {
self.preferencesController = [[MPPreferencesWindowController alloc] init];
}
[self.preferencesController showPreferences];
[self.preferencesController showPreferencesTab:tab];
}
- (void)showPasswordCreator:(id)sender {