Fix the issue of unequal check for amiibo file date due to the lack o… (#4832)

* Fix the issue of unequal check for amiibo file date due to the lack of sub-second units in the header, causing slow opening of the amiibo interface.

* Supplement the unrepaired.
This commit is contained in:
2435043xia 2023-05-12 01:10:24 +08:00 committed by GitHub
parent 95bad6995c
commit 42f7f98666
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -370,7 +370,7 @@ namespace Ryujinx.Ava.UI.ViewModels
if (response.IsSuccessStatusCode)
{
return response.Content.Headers.LastModified != oldLastModified;
return response.Content.Headers.LastModified != new DateTimeOffset(oldLastModified.Ticks - (oldLastModified.Ticks % TimeSpan.TicksPerSecond), TimeSpan.Zero);
}
return false;

View file

@ -180,7 +180,7 @@ namespace Ryujinx.Ui.Windows
if (response.IsSuccessStatusCode)
{
return response.Content.Headers.LastModified != oldLastModified;
return response.Content.Headers.LastModified != new DateTimeOffset(oldLastModified.Ticks - (oldLastModified.Ticks % TimeSpan.TicksPerSecond), TimeSpan.Zero);
}
return false;