Fixed issue that the cursor would disappear if you would fold a group but not have the first track active
This commit is contained in:
parent
1d0c7deac4
commit
ba63529112
@ -1289,7 +1289,13 @@ static void onFoldGroup(bool fold)
|
|||||||
Track* t = &getTrackData()->tracks[getActiveTrack()];
|
Track* t = &getTrackData()->tracks[getActiveTrack()];
|
||||||
|
|
||||||
if (t->group->trackCount > 1)
|
if (t->group->trackCount > 1)
|
||||||
|
{
|
||||||
|
TrackViewInfo* viewInfo = getTrackViewInfo();
|
||||||
|
int firstTrackIndex = t->group->t.tracks[0]->index;
|
||||||
t->group->folded = fold;
|
t->group->folded = fold;
|
||||||
|
setActiveTrack(firstTrackIndex);
|
||||||
|
viewInfo->selectStartTrack = viewInfo->selectStopTrack = firstTrackIndex;
|
||||||
|
}
|
||||||
|
|
||||||
Editor_updateTrackScroll();
|
Editor_updateTrackScroll();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user