mirror of
https://github.com/ksherlock/ample.git
synced 2024-11-19 02:11:08 +00:00
for child options, update the name when updating the keypath so it matches the bookmark data.
This commit is contained in:
parent
681c70d515
commit
cae68c7f5a
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user