mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
Only reset the inspector when a magnetized transfer's metadata is retrieved if the transfer is selected
This commit is contained in:
@@ -77,6 +77,7 @@ typedef enum
|
||||
@interface InfoWindowController (Private)
|
||||
|
||||
- (void) resetInfo;
|
||||
- (void) resetInfoForTorrent: (NSNotification *) notification;
|
||||
|
||||
- (void) updateInfoGeneral;
|
||||
- (void) updateInfoActivity;
|
||||
@@ -207,7 +208,7 @@ typedef enum
|
||||
|
||||
//allow for update notifications
|
||||
NSNotificationCenter * nc = [NSNotificationCenter defaultCenter];
|
||||
[nc addObserver: self selector: @selector(resetInfo) name: @"ResetInspector" object: nil];
|
||||
[nc addObserver: self selector: @selector(resetInfoForTorrent:) name: @"ResetInspector" object: nil];
|
||||
[nc addObserver: self selector: @selector(updateInfoStats) name: @"UpdateStats" object: nil];
|
||||
[nc addObserver: self selector: @selector(updateOptions) name: @"UpdateOptions" object: nil];
|
||||
}
|
||||
@@ -1403,6 +1404,12 @@ typedef enum
|
||||
[self updateOptions];
|
||||
}
|
||||
|
||||
- (void) resetInfoForTorrent: (NSNotification *) notification
|
||||
{
|
||||
if (fTorrents && [fTorrents containsObject: [notification object]])
|
||||
[self resetInfo];
|
||||
}
|
||||
|
||||
- (void) updateInfoGeneral
|
||||
{
|
||||
if ([fTorrents count] != 1)
|
||||
|
||||
Reference in New Issue
Block a user