better tracking of lower pane content visibility based on region selection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user