diff --git a/Makefile b/Makefile
index 56e72ef..5ba8afa 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,15 @@
ARCHS = arm64 arm64e
TARGET = iphone:clang:11.2:11.2
+INSTALL_TARGET_PROCESSES = SpringBoard
+
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = CustomNoOlderNotifications
+
CustomNoOlderNotifications_FILES = Tweak.xm
+CustomNoOlderNotifications_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/tweak.mk
-
-after-install::
- install.exec "killall -9 SpringBoard"
SUBPROJECTS += cnonprefs
include $(THEOS_MAKE_PATH)/aggregate.mk
diff --git a/cnonprefs/CNONRootListController.m b/cnonprefs/CNONRootListController.m
index 6ebbf6e..e5b5da1 100644
--- a/cnonprefs/CNONRootListController.m
+++ b/cnonprefs/CNONRootListController.m
@@ -11,7 +11,7 @@
return _specifiers;
}
-- (void)apply {
+- (void)saveTapped {
[self.view endEditing:YES];
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.cnon/respring"), NULL, NULL, YES);
}
diff --git a/cnonprefs/Makefile b/cnonprefs/Makefile
index fac8d51..9576018 100644
--- a/cnonprefs/Makefile
+++ b/cnonprefs/Makefile
@@ -4,10 +4,12 @@ TARGET = iphone:clang:11.2:11.2
include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = cnonprefs
+
cnonprefs_FILES = CNONRootListController.m
cnonprefs_INSTALL_PATH = /Library/PreferenceBundles
cnonprefs_FRAMEWORKS = UIKit
cnonprefs_PRIVATE_FRAMEWORKS = Preferences
+cnonprefs_CFLAGS = -fobjc-arc
include $(THEOS_MAKE_PATH)/bundle.mk
diff --git a/cnonprefs/Resources/Root.plist b/cnonprefs/Resources/Root.plist
index cd445d7..873d8fd 100644
--- a/cnonprefs/Resources/Root.plist
+++ b/cnonprefs/Resources/Root.plist
@@ -42,7 +42,7 @@
cell
PSButtonCell
action
- apply
+ saveTapped
label
Respring