diff --git a/Tweak.xm b/Tweak.xm index c07e06b..a83ec19 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -1,12 +1,12 @@ // respring function -@interface FBSystemService : NSObject +/*@interface FBSystemService : NSObject +(id)sharedInstance; -(void)exitAndRelaunch:(bool)arg1; @end static void RespringDevice() { [[%c(FBSystemService) sharedInstance] exitAndRelaunch:YES]; -} +}*/ // headers @interface SBUILegibilityLabel : UIView @@ -67,5 +67,5 @@ static void notificationCallback(CFNotificationCenterRef center, void *observer, CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, notificationCallback, (CFStringRef)nsNotificationString, NULL, CFNotificationSuspensionBehaviorCoalesce); // respring notification listener - CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); + //CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)RespringDevice, CFSTR("com.yaypixxo.cnon/respring"), NULL, CFNotificationSuspensionBehaviorDeliverImmediately); } \ No newline at end of file diff --git a/cnonprefs/CNONRootListController.m b/cnonprefs/CNONRootListController.m index 156a00c..ff1a796 100644 --- a/cnonprefs/CNONRootListController.m +++ b/cnonprefs/CNONRootListController.m @@ -36,9 +36,9 @@ } // send respring notification --(void)saveTapped { +-(void)apply { [self.view endEditing:YES]; - CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES); + //CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES); } @end diff --git a/cnonprefs/Resources/Root.plist b/cnonprefs/Resources/Root.plist index 873d8fd..5ea9755 100644 --- a/cnonprefs/Resources/Root.plist +++ b/cnonprefs/Resources/Root.plist @@ -42,9 +42,9 @@ cell PSButtonCell action - saveTapped + apply label - Respring + Apply cell