mirror of
https://gitlab.com/sbrl/GalleryShare.git
synced 2018-06-12 22:45:16 +00:00
Show newest files in a direcotry in the preview, not the oldest
This commit is contained in:
parent
c8985502ae
commit
e13c6a14b3
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ namespace GalleryShare
|
|||
public static Image GenerateDirectoryThumbnail(string dirPath, Size thumbnailSize)
|
||||
{
|
||||
List<string> dirFiles = new List<string>(Directory.GetFiles(dirPath));
|
||||
dirFiles.Sort( (a, b) => File.GetLastWriteTime(a).CompareTo(File.GetLastWriteTime(b)) );
|
||||
dirFiles.Sort( (a, b) => File.GetLastWriteTime(b).CompareTo(File.GetLastWriteTime(a)) );
|
||||
|
||||
Bitmap resultImage = new Bitmap(thumbnailSize.Width, thumbnailSize.Height);
|
||||
using(Graphics context = Graphics.FromImage(resultImage))
|
||||
|
|
Loading…
Reference in a new issue