summaryrefslogtreecommitdiffstats
path: root/QuickActions/QuickActionsPrefs/QASRootListController.m
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-12-30 18:10:33 -0500
committerCameron Katri <me@cameronkatri.com>2021-12-30 18:10:33 -0500
commitae65348057f911b7abfd5a87e6060c18e4856b70 (patch)
treed7a0a1a17cf91439eeccf459fa87f604cb894479 /QuickActions/QuickActionsPrefs/QASRootListController.m
parent0a51fcb19809e59c108883462fda6739164db4c9 (diff)
downloadtweaks-ae65348057f911b7abfd5a87e6060c18e4856b70.tar.gz
tweaks-ae65348057f911b7abfd5a87e6060c18e4856b70.tar.zst
tweaks-ae65348057f911b7abfd5a87e6060c18e4856b70.zip
Save all preferences when apply is pressed
Diffstat (limited to 'QuickActions/QuickActionsPrefs/QASRootListController.m')
-rw-r--r--QuickActions/QuickActionsPrefs/QASRootListController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/QuickActions/QuickActionsPrefs/QASRootListController.m b/QuickActions/QuickActionsPrefs/QASRootListController.m
index 0d26dc7..7f62fe1 100644
--- a/QuickActions/QuickActionsPrefs/QASRootListController.m
+++ b/QuickActions/QuickActionsPrefs/QASRootListController.m
@@ -14,8 +14,8 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-#import "Preferences/PSTableCell.h"
#import <Foundation/Foundation.h>
+#import <Preferences/PSSpecifier.h>
#import "QASRootListController.h"
#include <spawn.h>
@@ -48,6 +48,9 @@
-(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);