better tracking of lower pane content visibility based on region selection

This commit is contained in:
Paul Davis
2025-05-04 19:21:35 -06:00
parent 9096acd3b4
commit 9deee4df7c
2 changed files with 7 additions and 3 deletions

View File

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

View File

@@ -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