From 9d2d29d0f4c1a6a23bd92e9b2a5570d658c75fd4 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Sun, 24 Jul 2022 19:17:04 -0700 Subject: [PATCH] [Sandbox Dialog] Fix removing newly added paths Newly added paths weren't adding all of the necessary data to the list storage to make it possible to remove them without restarting the player. Oops. Signed-off-by: Christopher Snowhill --- Preferences/Preferences/SandboxPathBehaviorController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Preferences/Preferences/SandboxPathBehaviorController.m b/Preferences/Preferences/SandboxPathBehaviorController.m index 304ec347a..d35ddc49e 100644 --- a/Preferences/Preferences/SandboxPathBehaviorController.m +++ b/Preferences/Preferences/SandboxPathBehaviorController.m @@ -76,7 +76,7 @@ if(err) { ALog(@"Error saving bookmark: %@", [err localizedDescription]); } else { - [self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }]; + [self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes"), @"isFolder": @(token.folder), @"token": token }]; } } }