summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2022-01-02 21:02:27 -0500
committerCameron Katri <me@cameronkatri.com>2022-01-02 21:02:27 -0500
commit67bd724e0960b7c5635bfb7d67e1953da116cac1 (patch)
tree988a48da022815b94165fb7a3345ef3a44f5b328
parentae65348057f911b7abfd5a87e6060c18e4856b70 (diff)
downloadtweaks-67bd724e0960b7c5635bfb7d67e1953da116cac1.tar.gz
tweaks-67bd724e0960b7c5635bfb7d67e1953da116cac1.tar.zst
tweaks-67bd724e0960b7c5635bfb7d67e1953da116cac1.zip
Move respring button
-rw-r--r--QuickActions/QuickActionsPrefs/QASRootListController.m14
-rw-r--r--QuickActions/QuickActionsPrefs/Resources/Root.plist8
2 files changed, 7 insertions, 15 deletions
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);
diff --git a/QuickActions/QuickActionsPrefs/Resources/Root.plist b/QuickActions/QuickActionsPrefs/Resources/Root.plist
index 60f36c2..efe4052 100644
--- a/QuickActions/QuickActionsPrefs/Resources/Root.plist
+++ b/QuickActions/QuickActionsPrefs/Resources/Root.plist
@@ -99,8 +99,14 @@
<dict>
<key>cell</key>
<string>PSGroupCell</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSButtonCell</string>
<key>label</key>
- <string>Links</string>
+ <string>Respring</string>
+ <key>action</key>
+ <string>respring</string>
</dict>
<dict>
<key>cell</key>