mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
when table values are changed, reload the table immediately
This commit is contained in:
parent
4d6eda4a0e
commit
17682552ec
2 changed files with 3 additions and 7 deletions
|
@ -1438,13 +1438,7 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
|
|||
{
|
||||
if ([fWindow isVisible])
|
||||
{
|
||||
//resort if necessary or just update the table
|
||||
NSString * sortType = [fDefaults stringForKey: @"Sort"];
|
||||
if ([sortType isEqualToString: SORT_ORDER] || [sortType isEqualToString: SORT_DATE]
|
||||
|| [sortType isEqualToString: SORT_NAME])
|
||||
[fTableView reloadData];
|
||||
else
|
||||
[self sortTorrents];
|
||||
[self sortTorrents];
|
||||
|
||||
//update status bar
|
||||
if (![fStatusBar isHidden])
|
||||
|
|
|
@ -240,6 +240,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
|
|||
return;
|
||||
}
|
||||
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: self];
|
||||
[self saveGroups];
|
||||
}
|
||||
|
||||
|
@ -303,6 +304,7 @@ GroupsWindowController * fGroupsWindowInstance = nil;
|
|||
[fTableView reloadData];
|
||||
|
||||
[self saveGroups];
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateUI" object: self];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
Loading…
Reference in a new issue