mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 20:56:28 +01:00
Move RecordState to ardour/types.h
This allows it to be used without including session.h.
This commit is contained in:
parent
de345dd790
commit
666b3ba920
20 changed files with 54 additions and 54 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue