refresh the file checks in the inspector immediately when changed from the main window
This commit is contained in:
parent
2e8f95aa7d
commit
4d1403fc21
|
@ -107,6 +107,10 @@
|
||||||
|
|
||||||
//set blank inspector
|
//set blank inspector
|
||||||
[self updateInfoForTorrents: [NSArray array]];
|
[self updateInfoForTorrents: [NSArray array]];
|
||||||
|
|
||||||
|
//allow for update notifications
|
||||||
|
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateInfoStats)
|
||||||
|
name: @"UpdateStats" object: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) dealloc
|
- (void) dealloc
|
||||||
|
|
|
@ -348,7 +348,7 @@
|
||||||
NSIndexSet * indexes = [[sender representedObject] objectForKey: @"Indexes"];
|
NSIndexSet * indexes = [[sender representedObject] objectForKey: @"Indexes"];
|
||||||
[fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexes];
|
[fMenuTorrent setFileCheckState: [sender state] != NSOnState ? NSOnState : NSOffState forIndexes: indexes];
|
||||||
|
|
||||||
#warning reload inspector -> files
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"UpdateStats" object: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning only update shown
|
#warning only update shown
|
||||||
|
|
Loading…
Reference in New Issue