mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-08 15:54:57 +01:00
Hide VTAV header controls for small height
This commit is contained in:
parent
243cd35a36
commit
ce48dfdeba
1 changed files with 10 additions and 0 deletions
|
|
@ -341,6 +341,16 @@ void
|
||||||
VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m)
|
VCATimeAxisView::set_height (uint32_t h, TrackHeightMode m)
|
||||||
{
|
{
|
||||||
TimeAxisView::set_height (h, m);
|
TimeAxisView::set_height (h, m);
|
||||||
|
if (height >= preset_height (HeightNormal)) {
|
||||||
|
drop_button.show ();
|
||||||
|
automation_button.show ();
|
||||||
|
gain_meter.get_gain_slider().show ();
|
||||||
|
} else {
|
||||||
|
drop_button.hide ();
|
||||||
|
automation_button.hide ();
|
||||||
|
gain_meter.get_gain_slider().hide ();
|
||||||
|
}
|
||||||
|
|
||||||
set_gui_property ("height", h);
|
set_gui_property ("height", h);
|
||||||
_vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
|
_vca->gui_changed ("track_height", (void*) 0); /* EMIT SIGNAL */
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue