From f274bb0c14b13e0e7bbf65fc5a07f40fcaa482cc Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Wed, 15 Feb 2017 01:58:44 -0800 Subject: Hide custom function_ as an implementation detail. --- MobileCydia.mm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'MobileCydia.mm') diff --git a/MobileCydia.mm b/MobileCydia.mm index 0485f54..a1c06d7 100644 --- a/MobileCydia.mm +++ b/MobileCydia.mm @@ -6398,6 +6398,9 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { #if !AlwaysReload - (void) _customButtonClicked { + if (commercial_ && [package_ uninstalled]) + return [self reloadURLWithCache:NO]; + size_t count(buttons_.size()); if (count == 0) return; @@ -6425,12 +6428,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) { } } -- (void) reloadButtonClicked { - if (commercial_ && function_ == nil && [package_ uninstalled]) - return; - [self customButtonClicked]; -} - - (void) applyLoadingTitle { // Don't show "Loading" as the title. Ever. } -- cgit v1.2.3