refresh the file checks in the inspector immediately when changed from the main window

This commit is contained in:
Mitchell Livingston 2007-08-08 14:28:51 +00:00
parent 2e8f95aa7d
commit 4d1403fc21
2 changed files with 5 additions and 1 deletions

View File

@ -107,6 +107,10 @@
//set blank inspector
[self updateInfoForTorrents: [NSArray array]];
//allow for update notifications
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateInfoStats)
name: @"UpdateStats" object: nil];
}
- (void) dealloc

View File

@ -348,7 +348,7 @@
NSIndexSet * indexes = [[sender representedObject] objectForKey: @"Indexes"];
[fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexes];
#warning reload inspector -> files
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
}
#warning only update shown