when opening a pianoroll for a new empty region, take the note mode from the track

This commit is contained in:
Paul Davis 2025-12-01 18:10:09 -07:00
parent 38368f4dd9
commit fd0e9e840e

View file

@ -1475,6 +1475,13 @@ Pianoroll::set_region (std::shared_ptr<ARDOUR::Region> region)
bg->display_region (*view);
maybe_set_from_rsu ();
if (r->source()->empty()) {
std::shared_ptr<MidiTrack> mt (std::dynamic_pointer_cast<ARDOUR::MidiTrack> (_track));
if (mt) {
note_mode_actions[mt->note_mode()]->set_active (true);
}
}
}
bool