This repository was archived by the owner on Oct 12, 2018. It is now read-only.
File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,10 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
99
99
// [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self selector: @selector(drivesChanged:) name:NSWorkspaceDidUnmountNotification object:nil];
100
100
[[[NSWorkspace sharedWorkspace ] notificationCenter ] addObserver: self selector: @selector (wakeFromSleep: ) name: NSWorkspaceDidWakeNotification object: nil ];
101
101
102
- [self performSelector: @selector (rebuildSensorsList ) withObject: nil afterDelay: 0.0 ];
103
-
102
+ [[NSOperationQueue mainQueue ] addOperationWithBlock: ^{
103
+ [self rebuildSensorsList ];
104
+ }];
104
105
105
-
106
106
// if (![[NSUserDefaults standardUserDefaults] boolForKey:@"SUHasLaunchedBefore"] || [[NSUserDefaults standardUserDefaults] integerForKey:@"SUScheduledCheckInterval"] != 3600) {
107
107
// _sharedUpdater.updateCheckInterval = 3600;
108
108
// }
Original file line number Diff line number Diff line change @@ -44,8 +44,10 @@ - (id)init
44
44
45
45
[_statusItemView setAction: @selector (togglePanel: )];
46
46
[_statusItemView setTarget: self ];
47
-
48
- [self performSelector: @selector (initialSetup ) withObject: nil afterDelay: 0.0 ];
47
+
48
+ [[NSOperationQueue mainQueue ] addOperationWithBlock: ^{
49
+ [self initialSetup ];
50
+ }];
49
51
}
50
52
51
53
return self;
You can’t perform that action at this time.
0 commit comments