Permalink
Browse files

check repositories at startup

  • Loading branch information...
1 parent 423fa95 commit d464a72c6db070082272af5d10d98b36481bedf6 @mackuba mackuba committed Sep 26, 2010
Showing with 3 additions and 1 deletion.
  1. +1 −0 Classes/GitifierAppDelegate.m
  2. +1 −0 Classes/Monitor.h
  3. +1 −1 Classes/Monitor.m
@@ -36,6 +36,7 @@ - (void) applicationDidFinishLaunching: (NSNotification *) aNotification {
[repositoryListController loadRepositories];
[statusBarController createStatusBarItem];
[monitor startMonitoring];
+ [monitor timerFired];
if ([[repositoryListController repositoryList] count] == 0) {
[self showPreferences: self];
View
@@ -22,5 +22,6 @@
// public
- (void) startMonitoring;
+- (void) timerFired;
@end
View
@@ -50,7 +50,7 @@ - (void) observeValueForKeyPath: (NSString *) keyPath
ofObject: (id) object
change: (NSDictionary *) change
context: (void *) context {
- if ([keyPath isEqual: [self monitorKeyPath]]) {
+ if (timer && [keyPath isEqual: [self monitorKeyPath]]) {
[self stopMonitoring];
[self startMonitoring];
}

0 comments on commit d464a72

Please sign in to comment.