mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-25 04:57:03 +00:00
Fix for selection being lost when changing the number of segments.
Reviewed by tolmasky. Signed-off-by: Francisco Ryan Tolmasky I <francisco@280north.com>
This commit is contained in:
committed by
Francisco Ryan Tolmasky I
parent
7cc6e6af0a
commit
af062da99d
@@ -119,13 +119,13 @@ CPSegmentSwitchTrackingMomentary = 2;
|
||||
}
|
||||
else if (aCount < _segments.length)
|
||||
{
|
||||
for (var index = aCount; index < _segments.length; ++index)
|
||||
_segments[index] = nil;
|
||||
_segments.length = aCount;
|
||||
_themeStates.length = aCount;
|
||||
}
|
||||
|
||||
if (_selectedSegment < _segments.length)
|
||||
|
||||
if (_selectedSegment >= _segments.length)
|
||||
_selectedSegment = -1;
|
||||
|
||||
|
||||
[self tileWithChangedSegment:0];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user