From 9524aea31f41cb769b3b2f9bc1d15955d5ed2a1a Mon Sep 17 00:00:00 2001 From: Simone Manganelli Date: Mon, 29 Jun 2009 14:15:28 -0700 Subject: [PATCH] gear image now is always drawn, unless the 'drawGearImageOnlyOnMouseOver' key is set to YES in com.github.rentzsch.clicktoflash.plist --- Plugin/Plugin.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Plugin/Plugin.m b/Plugin/Plugin.m index dc7a4a0d..38fce73b 100755 --- a/Plugin/Plugin.m +++ b/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