Permalink
Browse files

check for already playing file after the connection with XBMC has bee…

…n established
  • Loading branch information...
1 parent c53893a commit 6c2b63fe45278d8a3c47c956363cd0f441e2ea70 @Montellese committed Oct 27, 2010
Showing with 731 additions and 2 deletions.
  1. +14 −1 DisplayHandler.cs
  2. +674 −0 LICENSE
  3. +43 −1 XbmcHandler.cs
View
@@ -24,6 +24,11 @@ internal partial class DisplayHandler : IDisposable
#region Public variables
+ public bool Empty
+ {
+ get { return this.queue.Count <= 0; }
+ }
+
#endregion
#region Constructor
@@ -165,7 +170,15 @@ private void stateChanged(object sender, iMonStateChangedEventArgs e)
this.vfd = true;
}
- this.SetText("XBMC", "XBMC", string.Empty);
+ if (this.Empty)
+ {
+ this.SetText("XBMC", "XBMC", string.Empty);
+ }
+ else
+ {
+ this.display(this.queue[0]);
+ this.position = 1;
+ }
}
else
{
Oops, something went wrong.

0 comments on commit 6c2b63f

Please sign in to comment.