From 82ddac30e3f2a46f2a71345279fef92e21f098a5 Mon Sep 17 00:00:00 2001 From: Fernando da Silva Sousa Date: Sun, 27 Jan 2019 07:53:44 -0200 Subject: [PATCH] Switch first_match with a foreach loop as flatpack build is not recognizing it --- src/Core/Players.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Core/Players.vala b/src/Core/Players.vala index 685fbfd..c8881d9 100644 --- a/src/Core/Players.vala +++ b/src/Core/Players.vala @@ -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); + } + } } }