Skip to content

Commit

Permalink
fix bug where path for child devices was incomplete.
Browse files Browse the repository at this point in the history
  • Loading branch information
ksherlock committed Nov 25, 2023
1 parent 45fe975 commit 43a7f31
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Ample/Slot.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ +(void)load {
};
}

-(NSString *)description {
return [NSString stringWithFormat: @"<Slot: %@>", _name];
}

-(void)reset {
[self setSelectedIndex: _defaultIndex >= 0 ? _defaultIndex : 0];
for (SlotOption *s in _options) {
Expand Down Expand Up @@ -281,7 +285,7 @@ -(instancetype)initWithDictionary: (NSDictionary *)data devices: (NSDictionary *
if (x) _type = [x intValue];


if (index < 0x10000) {
if (index && index < 0x10000) {
topLevel = YES;
_name = [@"-" stringByAppendingString: _name];
_title = [_title stringByAppendingString: @":"];
Expand Down

0 comments on commit 43a7f31

Please sign in to comment.