From 90a1f45f993920491fd17509449eb6936ffbf06f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sat, 13 Nov 2010 19:10:31 +0000 Subject: [PATCH] update the toolbar icons right away in a handful of potentially relevant events --- macosx/Controller.m | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.40.0