update info when changing directory

This commit is contained in:
Mitchell Livingston 2006-11-16 23:29:11 +00:00
parent 674391045a
commit 02fc10a15a
2 changed files with 4 additions and 1 deletions

View File

@ -291,6 +291,9 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
//observe notifications
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
[nc addObserver: fInfoController selector: @selector(updateInfoSettings)
name: @"UpdateInfoSettings" object: nil];
[nc addObserver: self selector: @selector(torrentFinishedDownloading:)
name: @"TorrentFinishedDownloading" object: nil];

View File

@ -640,7 +640,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
[self startTransfer];
[self update];
#warning reload inspector
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateInfoSettings" object: nil];
}
else
[[NSNotificationCenter defaultCenter] postNotificationName: @"StoppedDownloading" object: self];