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
  • Loading branch information
Simone Manganelli authored and Simone Manganelli committed Jun 29, 2009
1 parent 8463078 commit 9524aea
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Plugin/Plugin.m
Expand Up @@ -47,6 +47,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 @@ -869,8 +870,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 9524aea

Please sign in to comment.