Fix log window not showing logs after game closed

LOG_BUFFERS is keyed by game id string, not integer
This commit is contained in:
fatalis 2021-06-11 07:44:31 -05:00 committed by Mathieu Comandon
parent 7a58176c06
commit 6d56b2ef10

View file

@ -145,7 +145,7 @@ class GameActions:
def on_show_logs(self, _widget):
"""Display game log"""
_buffer = LOG_BUFFERS.get(self.game.id)
_buffer = LOG_BUFFERS.get(str(self.game.id))
if not _buffer:
logger.info("No log for game %s", self.game)
return LogWindow(