From: Mitchell Livingston Date: Sat, 13 Nov 2010 19:10:31 +0000 (+0000) Subject: update the toolbar icons right away in a handful of potentially relevant events X-Git-Tag: 2.12~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90a1f45f993920491fd17509449eb6936ffbf06f;p=transmission update the toolbar icons right away in a handful of potentially relevant events --- diff --git a/macosx/Controller.m b/macosx/Controller.m index 3e83da85b..89b8aba32 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -1318,6 +1318,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [self updateUI]; [self applyFilter: nil]; + [[fWindow toolbar] validateVisibleItems]; [self updateTorrentHistory]; } @@ -1341,6 +1342,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [self updateUI]; [self applyFilter: nil]; + [[fWindow toolbar] validateVisibleItems]; [self updateTorrentHistory]; } @@ -1673,6 +1675,8 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [[QLPreviewPanelSL sharedPreviewPanel] reloadData]; } + + [[fWindow toolbar] validateVisibleItems]; } - (void) resetInfo @@ -1876,6 +1880,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [self updateUI]; [self applyFilter: nil]; + [[fWindow toolbar] validateVisibleItems]; [self updateTorrentHistory]; } @@ -2928,6 +2933,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy - (void) torrentTableViewSelectionDidChange: (NSNotification *) notification { [self resetInfo]; + [[fWindow toolbar] validateVisibleItems]; } - (NSDragOperation) draggingEntered: (id ) info @@ -3205,6 +3211,7 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy [self showFilterBar: [fFilterBar isHidden] animate: YES]; [fDefaults setBool: ![fFilterBar isHidden] forKey: @"FilterBar"]; + [[fWindow toolbar] validateVisibleItems]; } //doesn't save shown state