From: Mitchell Livingston Date: Sat, 21 Sep 2013 16:24:40 +0000 (+0000) Subject: #5494 Filter should reset when bar is hidden X-Git-Tag: 2.83~74 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78662f653279a8beee04aa2b23e6827cd800c985;p=transmission #5494 Filter should reset when bar is hidden --- diff --git a/macosx/Controller.m b/macosx/Controller.m index ae67e08cb..0b2bd2cda 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -3620,14 +3620,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy { const BOOL show = fFilterBar == nil; + //disable filtering when hiding (have to do before showFilterBar:animate:) + if (!show) + [fFilterBar reset: NO]; + [self showFilterBar: show animate: YES]; [fDefaults setBool: show forKey: @"FilterBar"]; [[fWindow toolbar] validateVisibleItems]; - //disable filtering when hiding - if (!show) - [fFilterBar reset: NO]; - [self applyFilter]; //do even if showing to ensure tooltips are updated }