Skip to content

Commit

Permalink
Switch first_match with a foreach loop as flatpack build is not recog…
Browse files Browse the repository at this point in the history
…nizing it
  • Loading branch information
naaando committed Jan 27, 2019
1 parent 03d2af2 commit 82ddac3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Core/Players.vala
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public class Lyrics.Players : Object {
}

public void remove_by_busname (string name) {
remove (players.first_match ((p) => { return p.busname == name;}));
foreach (var player in players) {
if (player.busname == name) {
remove (player);
}
}
}
}

0 comments on commit 82ddac3

Please sign in to comment.