summaryrefslogtreecommitdiff
path: root/Cydia.mm
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-04-25 11:48:53 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2008-04-25 11:48:53 +0000
commit1d3b229dcd51bdfa19cb2902988a5523228945b7 (patch)
tree45db5a0fb2dc03057c33f05c3e62e2ccaf48b6ec /Cydia.mm
parent559dec340378ef1926e6259683ad6530597e6a9b (diff)
Fixed reload button reclicking, updated the eye location.
Diffstat (limited to 'Cydia.mm')
-rw-r--r--Cydia.mm15
1 files changed, 10 insertions, 5 deletions
diff --git a/Cydia.mm b/Cydia.mm
index 6baa279..0036089 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];