Move RecordState to ardour/types.h

This allows it to be used without including session.h.
This commit is contained in:
David Robillard 2021-06-15 19:58:23 -04:00
parent de345dd790
commit 666b3ba920
20 changed files with 54 additions and 54 deletions

View file

@ -370,7 +370,7 @@ void
BasicUI::rec_enable_toggle ()
{
switch (_session->record_status()) {
case Session::Disabled:
case RecordState::Disabled:
if (_session->ntracks() == 0) {
// string txt = _("Please create 1 or more track\nbefore trying to record.\nCheck the Session menu.");
// MessageDialog msg (*editor, txt);
@ -379,8 +379,8 @@ BasicUI::rec_enable_toggle ()
}
_session->maybe_enable_record ();
break;
case Session::Recording:
case Session::Enabled:
case RecordState::Recording:
case RecordState::Enabled:
_session->disable_record (false, true);
}
}