mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Load commit list in a separate thread
This makes the initial startup much faster. Commits get loaded in a separate thread, and are displayed every 1000 commits. There is a bug in here that makes fails a click while it is loading the commit list. Not sure how to fix this, perhaps send the arrayController?
This commit is contained in:
@@ -41,13 +41,13 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void) changeContentTo: (id) content
|
||||
- (void) changeContentTo: (PBGitCommit *) content
|
||||
{
|
||||
NSLog(@"Starting Change");
|
||||
if ([currentSha isEqualToString: content.sha])
|
||||
return;
|
||||
currentSha = content.sha;
|
||||
id script = [view windowScriptObject];
|
||||
[script setValue: content forKey:@"CommitObject"];
|
||||
NSLog(@"Done 1");
|
||||
[script callWebScriptMethod:@"doeHet" withArguments: nil];
|
||||
NSLog(@"Change done");
|
||||
}
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user