UI: Show play time in one time unit, maxing out at hours.

This commit is contained in:
Evan Husted
2025-01-10 20:23:47 -06:00
parent 4a4ea557de
commit d75ce52bd4
4 changed files with 32 additions and 18 deletions

View File

@ -37,6 +37,8 @@ namespace Ryujinx.Ava.Utilities.AppLibrary
public string TimePlayedString => ValueFormatUtils.FormatTimeSpan(TimePlayed);
public bool HasPlayedPreviously => TimePlayedString != string.Empty;
public string LastPlayedString => ValueFormatUtils.FormatDateTime(LastPlayed)?.Replace(" ", "\n");
public string FileSizeString => ValueFormatUtils.FormatFileSize(FileSize);