Skip to content
Browse files

gear image now is always drawn, unless the 'drawGearImageOnlyOnMouseO…

…ver' key is set to YES in com.github.rentzsch.clicktoflash.plist
1 parent 8463078 commit 9524aea31f41cb769b3b2f9bc1d15955d5ed2a1a Simone Manganelli committed Jun 29, 2009
Showing with 7 additions and 2 deletions.
  1. +7 −2 Plugin/Plugin.m
View
9 Plugin/Plugin.m
@@ -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;
@@ -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

0 comments on commit 9524aea

Please sign in to comment.
Something went wrong with that request. Please try again.