mirror of
https://github.com/transmission/transmission.git
synced 2026-05-08 09:39:08 +01:00
small cleanup
This commit is contained in:
+2
-4
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user