diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-02 23:35:22 -0800 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2017-02-02 23:35:22 -0800 |
commit | fdf2ae4dbf1d4c961884da76bc3a293609e502d0 (patch) | |
tree | 6aaab54c097e3b4e08b93265f07cac28e66bc88f /Tweak.xm | |
parent | 70593971d6220c60aab66c3c5190294917ccd8b1 (diff) |
Fix OK button on iOS 8 (and maybe other versions).
Diffstat (limited to 'Tweak.xm')
-rw-r--r-- | Tweak.xm | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) { |