From 7e649dc8aad9b26fe00631ebcd95940ff4b88665 Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Fri, 25 Apr 2008 11:48:53 +0000 Subject: [PATCH] Fixed reload button reclicking, updated the eye location. --- Cydia.mm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Cydia.mm b/Cydia.mm index 6baa2792..00360899 100644 --- a/Cydia.mm +++ b/Cydia.mm @@ -2594,6 +2594,7 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString NSString *title_; bool loading_; + bool reloading_; } - (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy; @@ -3162,6 +3163,7 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString if ([frame parentFrame] != nil) return; + reloading_ = false; loading_ = true; [indicator_ startAnimation]; [self reloadButtons]; @@ -3183,9 +3185,11 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString } - (void) _finishLoading { - loading_ = false; - [indicator_ stopAnimation]; - [self reloadButtons]; + if (!reloading_) { + loading_ = false; + [indicator_ stopAnimation]; + [self reloadButtons]; + } } - (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame { @@ -3286,6 +3290,7 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString } - (void) _rightButtonClicked { + reloading_ = true; [self reloadURL]; } @@ -3792,10 +3797,10 @@ void AddTextView(NSMutableDictionary *fields, NSMutableArray *packages, NSString [transition_ transition:0 toView:table_]; - CGRect cnfrect = {{2, 37}, {17, 18}}; + CGRect cnfrect = {{1, 38}, {17, 18}}; CGRect area; - area.origin.x = cnfrect.size.width + 17; + area.origin.x = cnfrect.size.width + 15; area.origin.y = 30; area.size.width = [self bounds].size.width - area.origin.x - 18; area.size.height = [UISearchField defaultHeight]; -- 2.45.2