Don't display null file versions
This commit is contained in:
parent
7088bd4b8d
commit
a09ae1316d
@ -29,11 +29,12 @@ namespace LibationUiBase.GridView
|
||||
|
||||
public override string ToString()
|
||||
=> IsValid ? $"""
|
||||
{dateString()} (File v.{LastDownloadedFileVersion})
|
||||
{dateString()} {versionString()}
|
||||
{LastDownloadedFormat}
|
||||
Libation v{LastDownloadedVersion.ToString(3)}
|
||||
""" : "";
|
||||
|
||||
private string versionString() => LastDownloadedFileVersion is string ver ? $"(File v.{ver})" : "";
|
||||
|
||||
//Call ToShortDateString to use current culture's date format.
|
||||
private string dateString() => $"{LastDownloaded.Value.ToShortDateString()} {LastDownloaded.Value:HH:mm}";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user