NSString *title_;
bool loading_;
+ bool reloading_;
}
- (void) loadURL:(NSURL *)url cachePolicy:(NSURLRequestCachePolicy)policy;
if ([frame parentFrame] != nil)
return;
+ reloading_ = false;
loading_ = true;
[indicator_ startAnimation];
[self reloadButtons];
}
- (void) _finishLoading {
- loading_ = false;
- [indicator_ stopAnimation];
- [self reloadButtons];
+ if (!reloading_) {
+ loading_ = false;
+ [indicator_ stopAnimation];
+ [self reloadButtons];
+ }
}
- (void) webView:(WebView *)sender didFinishLoadForFrame:(WebFrame *)frame {
}
- (void) _rightButtonClicked {
+ reloading_ = true;
[self reloadURL];
}
[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];