Fix the laditray failure in non-realtime mode.

When realtime mode was disabled, the status_text variable wasn't initialised,
which caused laditray to not show JACK status correctly and show a diagnose
option in the menu instead.
This commit is contained in:
Krzysztof Foltman 2010-04-11 11:48:55 +01:00 committed by Krzysztof
parent a9d2f3fd13
commit c58746e007
1 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,8 @@ class laditray (gtk.StatusIcon, laditools.manager):
# Get Realtime status
if self.jack_is_realtime():
status_text = "RT | "
else:
status_text = ""
# Get DSP Load
status_text += str (round (float (self.jack_get_load()),1)) + "% | "
# Get Xruns