mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
better tracking of lower pane content visibility based on region selection
This commit is contained in:
parent
9096acd3b4
commit
9deee4df7c
2 changed files with 7 additions and 3 deletions
|
|
@ -1260,7 +1260,6 @@ Editor::set_session (Session *t)
|
|||
}
|
||||
_pianoroll->set_session (_session);
|
||||
|
||||
_bottom_hbox.pack_start(*_properties_box, true, true);
|
||||
/* _pianoroll is packed on demand in Editor::region_selection_changed */
|
||||
_bottom_hbox.show_all();
|
||||
|
||||
|
|
|
|||
|
|
@ -1730,16 +1730,21 @@ Editor::region_selection_changed ()
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
Gtkmm2ext::container_clear (_bottom_hbox);
|
||||
|
||||
if (pack_pianoroll) {
|
||||
_bottom_hbox.pack_start(*_properties_box, false, false);
|
||||
_bottom_hbox.pack_start(_pianoroll->contents(), true, true);
|
||||
_pianoroll->contents().hide ();
|
||||
_pianoroll->contents().show_all ();
|
||||
_properties_box->show ();
|
||||
} else {
|
||||
_bottom_hbox.pack_start(*_properties_box, true, true);
|
||||
if (!selection->regions.empty()) {
|
||||
_bottom_hbox.pack_start(*_properties_box, true, true);
|
||||
_properties_box->show ();
|
||||
}
|
||||
}
|
||||
_properties_box->show ();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue