mirror of
https://github.com/transmission/transmission
synced 2025-02-04 21:43:03 +00:00
only update the options window when the updated torrent is already selected
This commit is contained in:
parent
6e6e8680d1
commit
c42a623ada
1 changed files with 12 additions and 7 deletions
|
@ -1682,9 +1682,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
[self updateTorrentsInQueue];
|
[self updateTorrentsInQueue];
|
||||||
|
|
||||||
#warning perhaps check if torrent is selected in inspector
|
if ([[fTableView selectedTorrents] containsObject: torrent])
|
||||||
[fInfoController updateInfoStats];
|
{
|
||||||
[fInfoController updateOptions];
|
[fInfoController updateInfoStats];
|
||||||
|
[fInfoController updateOptions];
|
||||||
|
}
|
||||||
|
|
||||||
if (!fSoundPlaying && [fDefaults boolForKey: @"PlaySeedingSound"])
|
if (!fSoundPlaying && [fDefaults boolForKey: @"PlaySeedingSound"])
|
||||||
{
|
{
|
||||||
|
@ -4243,11 +4245,14 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
- (void) rpcChangedTorrent: (Torrent *) torrent
|
- (void) rpcChangedTorrent: (Torrent *) torrent
|
||||||
{
|
{
|
||||||
[torrent update];
|
[torrent update];
|
||||||
[torrent release];
|
|
||||||
|
|
||||||
#warning check if torrent is selected?
|
if ([[fTableView selectedTorrents] containsObject: torrent])
|
||||||
[fInfoController updateInfoStats];
|
{
|
||||||
[fInfoController updateOptions];
|
[fInfoController updateInfoStats];
|
||||||
|
[fInfoController updateOptions];
|
||||||
|
}
|
||||||
|
|
||||||
|
[torrent release];
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
Loading…
Reference in a new issue