provide a better method to decide if a trigger(slot) is occupied

This is necessary with clip recording because for some short time after recording,
a trigger may be playable despite not yet having a region.

libs edition.
This commit is contained in:
Paul Davis 2024-10-02 13:46:52 -06:00
parent e089953e78
commit 1e8b2c521c
7 changed files with 30 additions and 25 deletions

View file

@ -889,7 +889,7 @@ BasicUI::trigger_display_at (int x, int y)
ARDOUR::TriggerPtr current = tb->currently_playing ();
TriggerPtr tp = tb->trigger (_tbank_start_row + y);
if (tp) {
if (!tp->region()) {
if (!tp->playable()) {
disp.state = -1;
} else if (tp == current) {
disp.state = 1;