mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +01:00
Move RecordState to ardour/types.h
This allows it to be used without including session.h. Using this pointless cast syntax to make it easy to mechanically convert them all when we can finally use strong enums.
This commit is contained in:
parent
43ea100381
commit
8998efa8c8
20 changed files with 54 additions and 54 deletions
|
|
@ -367,7 +367,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);
|
||||
|
|
@ -376,8 +376,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