]> git.saurik.com Git - safemode-ios.git/commitdiff
Fix OK button on iOS 8 (and maybe other versions). master v0.9.6001
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Feb 2017 07:35:22 +0000 (23:35 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 3 Feb 2017 07:35:22 +0000 (23:35 -0800)
Tweak.xm

index f2748d6c3e70289c21290c3289c6ba512aab7878..189b39bdde92b4edc1d18dd769ba1a73db954c01 100644 (file)
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -91,7 +91,10 @@ void SafeModeButtonClicked(int button) {
 
 void SafeModeButtonClicked(id self, int button) {
     SafeModeButtonClicked(button);
-    [self deactivateForButton];
+    if ([self respondsToSelector:@selector(deactivateForButton)])
+        [self deactivateForButton];
+    else
+        [self dismiss];
 }
 
 void SafeModeAlertItem$alertSheet$buttonClicked$(id self, SEL sel, id sheet, int button) {