From cae68c7f5a2ab394e181bec8ed51effaffd2ff3a Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sun, 13 Jun 2021 17:17:20 -0400 Subject: [PATCH] for child options, update the name when updating the keypath so it matches the bookmark data. --- Ample/Slot.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ample/Slot.m b/Ample/Slot.m index e078643..67f3d73 100644 --- a/Ample/Slot.m +++ b/Ample/Slot.m @@ -163,6 +163,7 @@ static NSDictionary *IndexMap = nil; } // special case for child options since _name is incorrect. // _name is :rs232. should be set to -sl3:ssc:rs232 :/ +#if 0 if (!_title) { BOOL found = NO; @@ -180,7 +181,7 @@ static NSDictionary *IndexMap = nil; } return; } - +#endif NSString *value = [dict objectForKey: _name]; if (!value) { @@ -263,6 +264,9 @@ static NSDictionary *IndexMap = nil; for (SlotOption *o in _options) { [o setKeyPath: p]; } + + // set up child name so bookmarks work. + if (c == ':') _name = p; }