13
0

Remove indirection when showing/hiding TAV

This commit is contained in:
Robin Gareus 2022-01-25 05:06:08 +01:00
parent dd4b4dc00b
commit 0cf0de8c97
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 8 additions and 4 deletions

View File

@ -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);
}

View File

@ -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);
}
}
}