Turn off filter before hiding the bar, not the other way around. This should make it more obvious that the filter is turned off.
This commit is contained in:
parent
4a5fb32e62
commit
23c13fc293
|
@ -1664,15 +1664,15 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
|||
|
||||
- (void) toggleFilterBar: (id) sender
|
||||
{
|
||||
[self showFilterBar: !fFilterBarVisible animate: YES];
|
||||
[fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"];
|
||||
|
||||
//disable filtering when hiding
|
||||
if (!fFilterBarVisible)
|
||||
if (fFilterBarVisible)
|
||||
{
|
||||
[fSearchFilterField setStringValue: @""];
|
||||
[self setFilter: fNoFilterButton];
|
||||
}
|
||||
|
||||
[self showFilterBar: !fFilterBarVisible animate: YES];
|
||||
[fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"];
|
||||
}
|
||||
|
||||
- (void) showFilterBar: (BOOL) show animate: (BOOL) animate
|
||||
|
|
Loading…
Reference in New Issue