Skip to content

Commit

Permalink
[Sandbox Configuration] Do not delete path on fail
Browse files Browse the repository at this point in the history
Do not delete path from storage when save fails.

Signed-off-by: Christopher Snowhill <kode54@gmail.com>
  • Loading branch information
kode54 committed Jun 21, 2022
1 parent bc23ed6 commit 51f8536
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Preferences/Preferences/SandboxPathBehaviorController.m
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ - (void)addUrl:(NSURL *)url {
[pc.viewContext save:&err];
if(err) {
ALog(@"Error saving bookmark: %@", [err localizedDescription]);
[pc.viewContext deleteObject:token];
} else {
[self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }];
}
Expand Down

0 comments on commit 51f8536

Please sign in to comment.