mirror of
https://github.com/transmission/transmission
synced 2025-02-20 13:16:53 +00:00
A little less buggy filter buttons (but not bug-free).
This commit is contained in:
parent
bfc06d450c
commit
bbad665cd0
3 changed files with 9 additions and 1 deletions
|
@ -37,4 +37,6 @@
|
|||
- (void) setText: (NSString *) text;
|
||||
- (void) setEnabled: (BOOL) enable;
|
||||
|
||||
- (void) resetBounds: (NSNotification *) notification;
|
||||
|
||||
@end
|
||||
|
|
|
@ -162,7 +162,7 @@
|
|||
- (void) resetBounds: (NSNotification *) notification
|
||||
{
|
||||
[self removeTrackingRect: fTrackingTag];
|
||||
[self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||
fTrackingTag = [self addTrackingRect: [self bounds] owner: self userData: nil assumeInside: NO];
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
@ -1522,6 +1522,12 @@ static void sleepCallBack(void * controller, io_service_t y,
|
|||
NSSize minSize = [fWindow contentMinSize];
|
||||
minSize.height += heightChange;
|
||||
[fWindow setContentMinSize: minSize];
|
||||
|
||||
//reset tracking rects for filter buttons
|
||||
[fNoFilterButton resetBounds: nil];
|
||||
[fSeedFilterButton resetBounds: nil];
|
||||
[fDownloadFilterButton resetBounds: nil];
|
||||
[fPauseFilterButton resetBounds: nil];
|
||||
}
|
||||
|
||||
- (void) toggleFilterBar: (id) sender
|
||||
|
|
Loading…
Reference in a new issue