Release Shakeout Day 2 (#1594)
* Fixed a bad color on the PWA titlebar * Added more unit tests, cleaned up some dead code, and made it so when age restriction is Not Applicable, the Unknowns field disables * Don't show an empty menu when user has no permissions * Fixed deleting a library with relation causing library deleting to fail * Consolidated some includes code into one method for Series Repo * Small fixes
This commit is contained in:
parent
ef662d3235
commit
26d32cbf28
9 changed files with 252 additions and 100 deletions
|
@ -27,16 +27,4 @@ public class Library : IEntityDate
|
|||
public ICollection<FolderPath> Folders { get; set; }
|
||||
public ICollection<AppUser> AppUsers { get; set; }
|
||||
public ICollection<Series> Series { get; set; }
|
||||
|
||||
// Methods
|
||||
/// <summary>
|
||||
/// Has there been any modifications to the FolderPath's directory since the <see cref="FolderPath.LastScanned"/> date
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public bool AnyModificationsSinceLastScan()
|
||||
{
|
||||
// NOTE: I don't think we can do this due to NTFS
|
||||
return Folders.All(folder => File.GetLastWriteTimeUtc(folder.Path) > folder.LastScanned);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue