Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
CozmoNate committed Oct 5, 2013
1 parent ffc463b commit 679bd0b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions HWMonitor/AppController.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
//[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self selector: @selector(drivesChanged:) name:NSWorkspaceDidUnmountNotification object:nil];
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(wakeFromSleep:) name:NSWorkspaceDidWakeNotification object:nil];

[self performSelector:@selector(rebuildSensorsList) withObject:nil afterDelay:0.0];

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self rebuildSensorsList];
}];


// if (![[NSUserDefaults standardUserDefaults] boolForKey:@"SUHasLaunchedBefore"] || [[NSUserDefaults standardUserDefaults] integerForKey:@"SUScheduledCheckInterval"] != 3600) {
// _sharedUpdater.updateCheckInterval = 3600;
// }
Expand Down
6 changes: 4 additions & 2 deletions HWMonitor/PopupController.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ - (id)init

[_statusItemView setAction:@selector(togglePanel:)];
[_statusItemView setTarget:self];

[self performSelector:@selector(initialSetup) withObject:nil afterDelay:0.0];

[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self initialSetup];
}];
}

return self;
Expand Down

0 comments on commit 679bd0b

Please sign in to comment.