From 7895e7e83c6c370ab0605ba80a7517b8d38d5c55 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 7 Dec 2019 23:49:39 -0500 Subject: [PATCH] Force a re-serialization of Breakpoints on decode. --- Source/BreakpointManager.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/BreakpointManager.m b/Source/BreakpointManager.m index 75e6786..bc4b216 100644 --- a/Source/BreakpointManager.m +++ b/Source/BreakpointManager.m @@ -39,9 +39,10 @@ NSArray* savedBreakpoints = [[NSUserDefaults standardUserDefaults] arrayForKey:kPrefBreakpoints]; if (savedBreakpoints) { - [_savedBreakpoints addObjectsFromArray:savedBreakpoints]; for (NSDictionary* d in savedBreakpoints) { - [_breakpoints addObject:[[Breakpoint alloc] initWithDictionary:d]]; + Breakpoint* bp = [[Breakpoint alloc] initWithDictionary:d]; + [_breakpoints addObject:bp]; + [_savedBreakpoints addObject:[bp dictionary]]; } } } -- 2.22.5