mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Consolidate API, prefer ->running()
This commit is contained in:
parent
0805b6b925
commit
df28a71252
1 changed files with 2 additions and 2 deletions
|
|
@ -1595,7 +1595,7 @@ ARDOUR_UI::update_sample_rate (samplecnt_t)
|
|||
|
||||
ENSURE_GUI_THREAD (*this, &ARDOUR_UI::update_sample_rate, ignored)
|
||||
|
||||
if (!AudioEngine::instance()->connected()) {
|
||||
if (!AudioEngine::instance()->running()) {
|
||||
|
||||
snprintf (buf, sizeof (buf), "%s", _("Audio: <span foreground=\"red\">none</span>"));
|
||||
|
||||
|
|
@ -1898,7 +1898,7 @@ ARDOUR_UI::open_recent_session ()
|
|||
bool
|
||||
ARDOUR_UI::check_audioengine (Gtk::Window& parent)
|
||||
{
|
||||
if (!AudioEngine::instance()->connected()) {
|
||||
if (!AudioEngine::instance()->running()) {
|
||||
MessageDialog msg (parent, string_compose (
|
||||
_("%1 is not connected to any audio backend.\n"
|
||||
"You cannot open or close sessions in this condition"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue