From 67bd724e0960b7c5635bfb7d67e1953da116cac1 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Sun, 2 Jan 2022 21:02:27 -0500 Subject: Move respring button --- QuickActions/QuickActionsPrefs/QASRootListController.m | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'QuickActions/QuickActionsPrefs/QASRootListController.m') diff --git a/QuickActions/QuickActionsPrefs/QASRootListController.m b/QuickActions/QuickActionsPrefs/QASRootListController.m index 7f62fe1..31a4eb7 100644 --- a/QuickActions/QuickActionsPrefs/QASRootListController.m +++ b/QuickActions/QuickActionsPrefs/QASRootListController.m @@ -30,17 +30,6 @@ return _specifiers; } --(void)viewDidLoad -{ - [super viewDidLoad]; - UIBarButtonItem *respringButton = [[UIBarButtonItem alloc] initWithTitle:@"Apply" - style:UIBarButtonItemStylePlain - target:self - action:@selector(respring)]; - respringButton.tintColor = [UIColor systemRedColor]; - [self.navigationItem setRightBarButtonItem:respringButton]; -} - -(void)openSource { [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://git.cameronkatri.com/tweaks/tree/QuickActions"] options:@{} completionHandler:nil]; @@ -48,9 +37,6 @@ -(void)respring { - for (PSSpecifier *specifier in [self specifiers]) { - [self setPreferenceValue:[specifier propertyForKey:PSValueKey] specifier:specifier]; - } pid_t pid; const char *args[] = {"sbreload", NULL, NULL, NULL}; posix_spawn(&pid, "usr/bin/sbreload", NULL, NULL, (char *const *)args, NULL); -- cgit v1.2.3-56-ge451