]> git.saurik.com Git - cydia.git/commitdiff
Release mode, and button reloading.
authorJay Freeman (saurik) <saurik@saurk.com>
Tue, 21 Apr 2009 07:53:14 +0000 (07:53 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 30 Sep 2010 07:13:14 +0000 (07:13 +0000)
Cydia.mm
UICaboodle/RVBook.h
UICaboodle/RVBook.mm

index 9962b6554821316891ba652f4f9d8ad911475afc..29c4df3fc4f8cd4084b9d63ef32d2fbaffc369d4 100644 (file)
--- a/Cydia.mm
+++ b/Cydia.mm
@@ -403,7 +403,7 @@ extern NSString * const kCAFilterNearest;
 
 #define lprintf(args...) fprintf(stderr, args)
 
-#define ForRelease 0
+#define ForRelease 1
 #define TraceLogging (1 && !ForRelease)
 #define HistogramInsertionSort (0 && !ForRelease)
 #define ProfileTimes (0 && !ForRelease)
index d0037cf08fd745758ecea7abb6a65aa44b42fa9e..ff42c5a8e7eaa2095df277fc237262b4adefb020 100644 (file)
@@ -63,6 +63,7 @@
 - (void) reloadButtonsForPage:(RVPage *)page;
 - (NSString *) getTitleForPage:(RVPage *)page;
 
+- (void) reloadButtons;
 - (void) reloadData;
 
 - (CGRect) pageBounds;
index 29e9513bf2ce9ab2e804476374a47d633f61163a..7812a249597005f0bc8235e387fcc747361dacda 100644 (file)
     }
 }
 
+- (void) reloadButtons {
+    size_t count([pages_ count]);
+    if (count != 0) {
+        RVPage *page([pages_ lastObject]);
+        [self reloadButtonsForPage:page];
+    }
+}
+
 - (CGRect) pageBounds {
     return [transition_ bounds];
 }