]> git.cameronkatri.com Git - tweaks.git/commitdiff
Move respring button
authorCameron Katri <me@cameronkatri.com>
Mon, 3 Jan 2022 02:02:27 +0000 (21:02 -0500)
committerCameron Katri <me@cameronkatri.com>
Mon, 3 Jan 2022 02:02:27 +0000 (21:02 -0500)
QuickActions/QuickActionsPrefs/QASRootListController.m
QuickActions/QuickActionsPrefs/Resources/Root.plist

index 7f62fe140f8d46dcad0f2aac646afd4eceb4bb01..31a4eb72ef9760c3c15551f3bac5a2a0eb35f9fe 100644 (file)
        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);
index 60f36c2788d1c75267baca723f4921a304988963..efe4052000283cbd4757b34878d2ac299eca1e5d 100644 (file)
                <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>