Skip to content

Commit

Permalink
gear image now is always drawn, unless the 'drawGearImageOnlyOnMouseO…
Browse files Browse the repository at this point in the history
…ver' key is set to YES in com.github.rentzsch.clicktoflash.plist

Signed-off-by: Jonathan 'Wolf' Rentzsch <jwr.git@redshed.net>
  • Loading branch information
Simone Manganelli authored and rentzsch committed Jul 1, 2009
1 parent 4ec7893 commit 2c68335
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Plugin/Plugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ of this software and associated documentation files (the "Software"), to deal
static NSString *sAutoLoadInvisibleFlashViewsKey = @"autoLoadInvisibleViews";
static NSString *sPluginEnabled = @"pluginEnabled";
static NSString *sApplicationWhitelist = @"applicationWhitelist";
static NSString *sDrawGearImageOnlyOnMouseOverHiddenPref = @"drawGearImageOnlyOnMouseOver";

BOOL usingMATrackingArea = NO;

Expand Down Expand Up @@ -849,8 +850,12 @@ - (void) _drawBackground
[ self _drawBadgeWithPressed: mouseIsDown && mouseInside ];

// Draw the gear icon
if( mouseInside && !mouseIsDown )
[ self _drawGearIcon ];
if ([[CTFUserDefaultsController standardUserDefaults] boolForKey:sDrawGearImageOnlyOnMouseOverHiddenPref]) {
if( mouseInside && !mouseIsDown )
[ self _drawGearIcon ];
} else {
[ self _drawGearIcon ];
}
}

- (void) _addTrackingAreaForCTF
Expand Down

0 comments on commit 2c68335

Please sign in to comment.