mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 09:22:33 +00:00
Removed unloading code as it seems to be unsafe
Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
@@ -24,33 +24,6 @@ NSString *const _kMPPluginTableNameColumn = @"Name";
|
||||
|
||||
@implementation MPPluginSettingsController
|
||||
|
||||
- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
|
||||
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
|
||||
if(self) {
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(_didChangePlugins:)
|
||||
name:MPPluginManagerWillLoadPlugin
|
||||
object:[MPPluginManager sharedManager]];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(_didChangePlugins:)
|
||||
name:MPPluginManagerDidLoadPlugin
|
||||
object:[MPPluginManager sharedManager]];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(_didChangePlugins:)
|
||||
name:MPPluginManagerWillUnloadPlugin
|
||||
object:[MPPluginManager sharedManager]];
|
||||
[[NSNotificationCenter defaultCenter] addObserver:self
|
||||
selector:@selector(_didChangePlugins:)
|
||||
name:MPPluginManagerDidUnloadPlugin
|
||||
object:[MPPluginManager sharedManager]];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[[NSNotificationCenter defaultCenter] removeObserver:self];
|
||||
}
|
||||
|
||||
- (NSString *)nibName {
|
||||
return @"PluginSettings";
|
||||
}
|
||||
@@ -121,11 +94,4 @@ NSString *const _kMPPluginTableNameColumn = @"Name";
|
||||
[self showSettingsForPlugin:[self pluginForRow:table.selectedRow]];
|
||||
}
|
||||
|
||||
|
||||
- (void)_didChangePlugins:(NSNotification *)notification {
|
||||
/* better way? */
|
||||
[self.pluginTableView deselectAll:self];
|
||||
[self.pluginTableView reloadData];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user