mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
CommitController: Notify observers when adding files
We forgot to do this when changing the code in 963969af78
(CommitController: don't mutate array we enumerate when refreshing index).
This meant that some changes in the index would not be shown when refreshing,
for example newly added or changed files.
This commit is contained in:
@@ -264,6 +264,10 @@
|
||||
}
|
||||
|
||||
// Do new files
|
||||
if (![[dictionary allKeys] count])
|
||||
return;
|
||||
|
||||
[self willChangeValueForKey:@"files"];
|
||||
for (NSString *path in [dictionary allKeys]) {
|
||||
NSArray *fileStatus = [dictionary objectForKey:path];
|
||||
|
||||
@@ -285,6 +289,7 @@
|
||||
|
||||
[files addObject: file];
|
||||
}
|
||||
[self didChangeValueForKey:@"files"];
|
||||
}
|
||||
|
||||
- (void) readUnstagedFiles:(NSNotification *)notification
|
||||
|
||||
Reference in New Issue
Block a user