From 02fc10a15a3a6ba4cdd05285429919f84915f78a Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 16 Nov 2006 23:29:11 +0000 Subject: [PATCH] update info when changing directory --- macosx/Controller.m | 3 +++ macosx/Torrent.m | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index 064e88a34..8a0413e2e 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -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]; diff --git a/macosx/Torrent.m b/macosx/Torrent.m index ad444bd34..a70f7c215 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -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];