From: Dustin L. Howett Date: Tue, 5 Oct 2010 22:07:13 +0000 (-0400) Subject: Fix the default custom button behaviour for commercial packages. My understanding... X-Git-Url: https://git.saurik.com/cydia.git/commitdiff_plain/b98e849f9155baf677784105cea8de455cfdfb57?ds=inline Fix the default custom button behaviour for commercial packages. My understanding of the previous system was flawed enough to cause this- now, the custom button's behaviour is in _customButtonClicked, and the default customButtonClicked calls it instead of reloadButtonClicked. This is based on the original {_,__}rightButtonClicked methods. --- diff --git a/UICaboodle/BrowserView.mm b/UICaboodle/BrowserView.mm index 1615795d..50c31e45 100644 --- a/UICaboodle/BrowserView.mm +++ b/UICaboodle/BrowserView.mm @@ -1592,13 +1592,17 @@ static Class $UIWebBrowserView; [self reloadURL]; } +- (void) _customButtonClicked { + [self reloadButtonClicked]; +} + - (void) customButtonClicked { #if !AlwaysReload if (function_ != nil) [self callFunction:function_]; else #endif - [self reloadButtonClicked]; + [self _customButtonClicked]; } - (void) setPageActive:(BOOL)active {