Make Game handle last_played

This commit is contained in:
kramo
2023-05-11 14:44:34 +02:00
committed by GeoffreyCoulaud
parent 4553ab97e0
commit 42e3b45ec6
8 changed files with 2 additions and 10 deletions

View File

@@ -230,7 +230,7 @@ class CartridgesWindow(Adw.ApplicationWindow):
_("Added: {}").format(date)
)
last_played_date = (
self.get_time(game.last_played) if game.last_played != 0 else _("Never")
self.get_time(game.last_played) if game.last_played else _("Never")
)
self.details_view_last_played.set_label(
# The variable is the date when the game was last played