Commit 644c5f35 authored by Jonathan Michalon's avatar Jonathan Michalon

ovcc-game: ensure "current-player" notify is emitted with only one player

parent 51bff5af
......@@ -225,7 +225,14 @@ namespace OVCC
}
if (pick_next) {
/* here: didn't got a player next to current, so return the first */
current_player = first;
if (current_player == first) {
/* force notification because if we have only one player it's gonna be
* the same as before and notify signal wouldn't be sent!
* https://gitlab.gnome.org/GNOME/vala/commit/64b9bfc1bc0abfed45ad07a8ebaef8a5f167f848 */
this.notify_property("current-player");
} else {
current_player = first;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment