summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CyteKit/WebViewController.h1
-rw-r--r--CyteKit/WebViewController.mm7
-rw-r--r--MobileCydia.mm5
3 files changed, 7 insertions, 6 deletions
diff --git a/CyteKit/WebViewController.h b/CyteKit/WebViewController.h
index 76bdd82..897a204 100644
--- a/CyteKit/WebViewController.h
+++ b/CyteKit/WebViewController.h
@@ -71,6 +71,7 @@
bool error_;
_H<NSURLRequest> request_;
+ bool ready_;
_H<NSURLRequest> stage1_;
_H<NSURLRequest> stage2_;
diff --git a/CyteKit/WebViewController.mm b/CyteKit/WebViewController.mm
index 4dc94ef..4bd05b9 100644
--- a/CyteKit/WebViewController.mm
+++ b/CyteKit/WebViewController.mm
@@ -178,6 +178,7 @@ float CYScrollViewDecelerationRateNormal;
#endif
error_ = false;
+ ready_ = true;
WebThreadLocked lock;
[webview_ loadRequest:request];
@@ -216,7 +217,11 @@ float CYScrollViewDecelerationRateNormal;
- (void) reloadData {
[super reloadData];
- [self reloadURLWithCache:YES];
+
+ if (ready_)
+ [self dispatchEvent:@"CydiaReloadData"];
+ else
+ [self reloadURLWithCache:YES];
}
- (void) setButtonImage:(NSString *)button withStyle:(NSString *)style toFunction:(id)function {
diff --git a/MobileCydia.mm b/MobileCydia.mm
index e29da57..164d249 100644
--- a/MobileCydia.mm
+++ b/MobileCydia.mm
@@ -6136,11 +6136,6 @@ bool DepSubstrate(const pkgCache::VerIterator &iterator) {
] autorelease];
}
-- (void) unloadData {
- [super unloadData];
- [self reloadData];
-}
-
@end
/* }}} */
/* Manage Controller {{{ */