~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to Banshee/src/PlayAction.cs

  • Committer: Alex Launi
  • Date: 2009-03-13 22:08:37 UTC
  • mfrom: (276.4.28 bansheeplugin)
  • mto: This revision was merged to the branch mainline in revision 570.
  • Revision ID: alex@rikeeer-20090313220837-kjazz7axtfkzixbn
Merge the rootinest, tootinest banshee plugin ever

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
                public override IEnumerable<Item> Perform (IEnumerable<Item> items, IEnumerable<Item> modItems)
64
64
                {
65
65
                        if (items.First () is MediaItem)
66
 
                                Banshee.Play (items.Cast<MediaItem> ().First ());
 
66
                                Banshee.Play (items.OfType<MediaItem> ().First ());
67
67
                        else 
68
68
                                Banshee.Play ();
69
69
                                
70
70
                        yield break;
71
71
                }
 
72
                
 
73
                protected override bool IsAvailable ()
 
74
                {
 
75
                        return !Banshee.IsPlaying;
 
76
                }
72
77
        }
73
78
}
 
 
b'\\ No newline at end of file'