mark loop button insensitive when there's no loop-range

This commit is contained in:
Robin Gareus 2017-01-28 12:04:31 +01:00
parent 487ae58301
commit 0092442a64
4 changed files with 12 additions and 3 deletions

View file

@ -848,7 +848,15 @@ ARDOUR_UI::error_blink (bool onoff)
}
}
void
ARDOUR_UI::set_loop_sensitivity ()
{
if (!_session || _session->config.get_external_sync()) {
auto_loop_button.set_sensitive (false);
} else {
auto_loop_button.set_sensitive (_session && _session->locations()->auto_loop_location());
}
}
void
ARDOUR_UI::set_transport_sensitivity (bool yn)