player fix

This commit is contained in:
Sander Land committed 2020-12-08 14:14:40 +01:00
1 parent 353d291ef5
commit b98a1d4a1d
1 file changed
+1 -1
+1 -1
View File
@@ -219,7 +219,7 @@ class KaTrainGui(Screen, KaTrainBase):
super().update_player(bw, **kwargs)
if self.game:
sgf_name = self.game.root.get_property("P" + bw)
self.players_info[bw].name = None if SGF_INTERNAL_COMMENTS_MARKER in sgf_name else sgf_name
self.players_info[bw].name = None if not sgf_name or SGF_INTERNAL_COMMENTS_MARKER in sgf_name else sgf_name
if self.controls:
self.controls.update_players()
self.update_state()