mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-08 06:35:46 +01:00
desensitize auto-play button on slave != None and ignore auto-play in libardour if slave != None
git-svn-id: svn://localhost/ardour2/trunk@1530 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
bf0fac039e
commit
4f460078b8
2 changed files with 12 additions and 1 deletions
|
|
@ -822,6 +822,17 @@ ARDOUR_UI::parameter_changed (const char* parameter_name)
|
|||
if (PARAM_IS ("slave-source")) {
|
||||
|
||||
sync_option_combo.set_active_text (slave_source_to_string (Config->get_slave_source()));
|
||||
|
||||
switch (Config->get_slave_source()) {
|
||||
case None:
|
||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (true);
|
||||
break;
|
||||
|
||||
default:
|
||||
/* XXX need to make auto-play is off as well as insensitive */
|
||||
ActionManager::get_action ("Transport", "ToggleAutoPlay")->set_sensitive (false);
|
||||
break;
|
||||
}
|
||||
|
||||
} else if (PARAM_IS ("send-mtc")) {
|
||||
|
||||
|
|
|
|||
|
|
@ -924,7 +924,7 @@ Session::post_transport ()
|
|||
|
||||
if (post_transport_work & PostTransportLocate) {
|
||||
|
||||
if ((Config->get_auto_play() && !_exporting) || (post_transport_work & PostTransportRoll)) {
|
||||
if (((Config->get_slave_source() == None && Config->get_auto_play()) && !_exporting) || (post_transport_work & PostTransportRoll)) {
|
||||
start_transport ();
|
||||
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue