1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-15 16:29:34 +00:00

Better way to disable search filter.

This commit is contained in:
Mitchell Livingston 2006-07-16 18:28:27 +00:00
parent e03ca2eda0
commit c757564bb7

View file

@ -1573,17 +1573,15 @@ static void sleepCallBack(void * controller, io_service_t y,
- (void) toggleFilterBar: (id) sender
{
if (!fFilterBarVisible)
[fSearchFilterField setEnabled: YES];
[self showFilterBar: !fFilterBarVisible animate: YES];
[fDefaults setBool: fFilterBarVisible forKey: @"FilterBar"];
//disable filtering when hiding
if (!fFilterBarVisible)
{
[fSearchFilterField setEnabled: NO];
[fWindow makeFirstResponder: fTableView];
[fSearchFilterField setStringValue: @""];
[self setFilter: fNoFilterButton];
}
}