fix bug where path for child devices was incomplete.

This commit is contained in:
Kelvin Sherlock 2023-11-25 12:43:49 -05:00
parent 45fe975cff
commit 43a7f31484
1 changed files with 5 additions and 1 deletions

View File

@ -85,6 +85,10 @@ static NSDictionary *TypeMap = nil;
};
}
-(NSString *)description {
return [NSString stringWithFormat: @"<Slot: %@>", _name];
}
-(void)reset {
[self setSelectedIndex: _defaultIndex >= 0 ? _defaultIndex : 0];
for (SlotOption *s in _options) {
@ -281,7 +285,7 @@ static NSDictionary *TypeMap = nil;
if (x) _type = [x intValue];
if (index < 0x10000) {
if (index && index < 0x10000) {
topLevel = YES;
_name = [@"-" stringByAppendingString: _name];
_title = [_title stringByAppendingString: @":"];