Remove indirection when showing/hiding TAV
This commit is contained in:
parent
dd4b4dc00b
commit
0cf0de8c97
@ -5804,8 +5804,9 @@ Editor::hide_track_in_display (TimeAxisView* tv, bool apply_to_selection)
|
||||
/* this will hide the mixer strip */
|
||||
set_selected_mixer_strip (*tv);
|
||||
}
|
||||
|
||||
_routes->hide_track_in_display (*tv);
|
||||
if (rtv) {
|
||||
rtv->route()->presentation_info().set_hidden (true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -5815,7 +5816,10 @@ Editor::show_track_in_display (TimeAxisView* tv, bool move_into_view)
|
||||
if (!tv) {
|
||||
return;
|
||||
}
|
||||
_routes->show_track_in_display (*tv);
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (tv);
|
||||
if (rtv) {
|
||||
rtv->route()->presentation_info().set_hidden (false);
|
||||
}
|
||||
if (move_into_view) {
|
||||
ensure_time_axis_view_is_visible (*tv, false);
|
||||
}
|
||||
|
@ -515,7 +515,7 @@ EditorRouteGroups::property_changed (RouteGroup* group, const PropertyChange&)
|
||||
if (group->is_hidden ()) {
|
||||
_editor->hide_track_in_display (*i);
|
||||
} else {
|
||||
_editor->_routes->show_track_in_display (**i);
|
||||
_editor->show_track_in_display (*i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user