Changeset 7217c4f3d3ca45ca7950c5337d0f31e119484fed

Show
Ignore:
Timestamp:
09/18/10 23:25:20 (3 years ago)
Author:
Nedko Arnaudov <nedko@…>
Children:
a9a55b0ddcb2223fc1ba0a5a47f357955bb1a42e
Parents:
4bad0a8038418a359af306aa505568561f0fc0ac
git-committer:
Nedko Arnaudov <nedko@arnaudov.name> / 2010-09-18T23:25:20Z+0300
Message:

daemon: proper notification on automatic studio creation. Fix for #88

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • daemon/studio.c

    r70f2357 r7217c4f  
    109109{ 
    110110  ASSERT(!g_studio.announced); 
    111   ladish_notify_simple(LADISH_NOTIFY_URGENCY_NORMAL, "Studio loaded", NULL); 
     111 
     112  /* notify the user that studio started successfully, but dont lie when jack was started externally */ 
     113  if (!g_studio.automatic) 
     114  { 
     115    ladish_notify_simple(LADISH_NOTIFY_URGENCY_NORMAL, "Studio loaded", NULL); 
     116  } 
     117 
    112118  g_studio.announced = true; 
    113119} 
     
    350356 
    351357  ladish_studio_emit_started(); 
    352   ladish_notify_simple(LADISH_NOTIFY_URGENCY_NORMAL, "Studio started", NULL); 
     358 
     359  /* notify the user that studio started successfully, but dont lie when jack was started externally */ 
     360  if (!g_studio.automatic) 
     361  { 
     362    ladish_notify_simple(LADISH_NOTIFY_URGENCY_NORMAL, "Studio started", NULL); 
     363  } 
    353364} 
    354365 
     
    429440 
    430441      ladish_studio_on_event_jack_started(); 
     442 
     443      if (g_studio.automatic) 
     444      { 
     445        ladish_notify_simple( 
     446          LADISH_NOTIFY_URGENCY_NORMAL, 
     447          "Automatic studio created", 
     448          "JACK server is started not by ladish daemon and there is no loaded studio, so a new studio is created and marked as started."); 
     449      } 
    431450    } 
    432451    else