Skip to content

Commit

Permalink
added artist files into gschema
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Oct 3, 2017
1 parent c5319ca commit e3c0778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion schemas/com.github.artemanufrij.playmymusic.gschema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<description>Repeat mode.</description>
</key>
<key name="artists" type="as">
<default>['artist.jpg','Artist.jpg', 'interpreter.jpg', 'Interpreter.jpg']</default>
<default>['artist.jpg','Artist.jpg','artist.png','Artist.png','interpreter.jpg','Interpreter.jpg','interpreter.png','Interpreter.png']</default>
<summary>Artwork file names.</summary>
<description>Artwork file names.</description>
</key>
Expand Down
3 changes: 1 addition & 2 deletions src/Objects/TracksContainer.vala
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,7 @@ namespace PlayMyMusic.Objects {
if (_tracks == null) {
_tracks = new GLib.List<Track> ();
}
this._tracks.append (track);
_tracks.sort_with_data ((a, b) => {
this._tracks.insert_sorted_with_data (track, (a, b) => {
if (a.album.year != b.album.year) {
return a.album.year - b.album.year;
}
Expand Down

0 comments on commit e3c0778

Please sign in to comment.