mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
small cleanup
This commit is contained in:
parent
9c182359e6
commit
d5011bfe74
1 changed files with 2 additions and 4 deletions
|
@ -252,8 +252,7 @@
|
|||
|
||||
- (void) setForActive: (NSNotification *) notification
|
||||
{
|
||||
NSWindow * window;
|
||||
if (!(window = [notification object]) || window != [self window])
|
||||
if ([notification object] != [self window])
|
||||
return;
|
||||
|
||||
if ([self image] == fButtonSelectedDim)
|
||||
|
@ -267,8 +266,7 @@
|
|||
|
||||
- (void) setForInactive: (NSNotification *) notification
|
||||
{
|
||||
NSWindow * window;
|
||||
if (!(window = [notification object]) || window != [self window])
|
||||
if ([notification object] != [self window])
|
||||
return;
|
||||
|
||||
[self setImage: [self image] == fButtonSelected ? fButtonSelectedDim : fButtonNormalDim];
|
||||
|
|
Loading…
Reference in a new issue