~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to Xmms2/src/xmms2PlaylistActions.cs

  • Committer: Chris S.
  • Date: 2009-05-29 10:32:10 UTC
  • mfrom: (613.1.1 fix-null)
  • Revision ID: chris@szikszoy.com-20090529103210-0qhzh2meuw31xajy
fix all plugins that return null, instead if yield break

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
                public override IEnumerable<Item> Perform (IEnumerable<Item> items, IEnumerable<Item> modifierItems){
40
40
                        string command = string.Format("playlist load {0}", items.First ().Name);       
41
41
                        xmms2.Client(command, true);
42
 
                        return null;
 
42
                        yield break;
43
43
                }
44
44
        }
45
45
        
74
74
                                        xmms2.Client (string.Format ("shuffle {0}", item.Name));
75
75
                                }
76
76
                        }).Start ();
77
 
                        return null;
 
77
                        yield break;
78
78
                }
79
79
        }
80
80
        
109
109
                                        xmms2.Client(string.Format("coll attr Playlists/{0} jumplist {0}", item.Name));
110
110
                                }//unfortunately, there is no way to turn off repeat
111
111
                        }).Start();
112
 
                        return null;
 
112
                        yield break;
113
113
                }
114
114
        }
115
115
        
144
144
                                        xmms2.Client(string.Format("playlist create {0}", item.Name));
145
145
                                }
146
146
                        }).Start();
147
 
                        return null;
 
147
                        yield break;
148
148
                }
149
149
        }
150
150
        public class xmms2RemovePlaylistAction : Act{
178
178
                                        xmms2.Client(string.Format("playlist remove {0}", item.Name));
179
179
                                }
180
180
                        }).Start();
181
 
                        return null;
 
181
                        yield break;
182
182
                }
183
183
        }
184
184
}