From ae65348057f911b7abfd5a87e6060c18e4856b70 Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Thu, 30 Dec 2021 18:10:33 -0500 Subject: Save all preferences when apply is pressed --- QuickActions/QuickActionsPrefs/QASRootListController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'QuickActions/QuickActionsPrefs/QASRootListController.m') 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 . */ -#import "Preferences/PSTableCell.h" #import +#import #import "QASRootListController.h" #include @@ -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); -- cgit v1.2.3-56-ge451