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:
Mitchell Livingston 2006-07-23 14:46:13 +00:00
parent 4a5fb32e62
commit 23c13fc293
1 changed files with 4 additions and 4 deletions

View File

@ -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