mirror of https://github.com/ksherlock/ample.git
fix bug where path for child devices was incomplete.
This commit is contained in:
parent
45fe975cff
commit
43a7f31484
|
@ -85,6 +85,10 @@ static NSDictionary *TypeMap = nil;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-(NSString *)description {
|
||||||
|
return [NSString stringWithFormat: @"<Slot: %@>", _name];
|
||||||
|
}
|
||||||
|
|
||||||
-(void)reset {
|
-(void)reset {
|
||||||
[self setSelectedIndex: _defaultIndex >= 0 ? _defaultIndex : 0];
|
[self setSelectedIndex: _defaultIndex >= 0 ? _defaultIndex : 0];
|
||||||
for (SlotOption *s in _options) {
|
for (SlotOption *s in _options) {
|
||||||
|
@ -281,7 +285,7 @@ static NSDictionary *TypeMap = nil;
|
||||||
if (x) _type = [x intValue];
|
if (x) _type = [x intValue];
|
||||||
|
|
||||||
|
|
||||||
if (index < 0x10000) {
|
if (index && index < 0x10000) {
|
||||||
topLevel = YES;
|
topLevel = YES;
|
||||||
_name = [@"-" stringByAppendingString: _name];
|
_name = [@"-" stringByAppendingString: _name];
|
||||||
_title = [_title stringByAppendingString: @":"];
|
_title = [_title stringByAppendingString: @":"];
|
||||||
|
|
Loading…
Reference in New Issue