From 43a7f3148414bc58804f69c2d9cca612d78f2960 Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Sat, 25 Nov 2023 12:43:49 -0500 Subject: [PATCH] fix bug where path for child devices was incomplete. --- Ample/Slot.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ample/Slot.m b/Ample/Slot.m index 171ac90..f503001 100644 --- a/Ample/Slot.m +++ b/Ample/Slot.m @@ -85,6 +85,10 @@ static NSDictionary *TypeMap = nil; }; } +-(NSString *)description { + return [NSString stringWithFormat: @"", _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: @":"];