mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 01:37:31 +13:00
Ensure folders are sorted
This commit is contained in:
parent
9461880bf9
commit
ee1384b3cd
2 changed files with 2 additions and 1 deletions
|
@ -65,6 +65,7 @@ public FolderInfo(string folderPath)
|
|||
public void Update()
|
||||
{
|
||||
Folders.ForEach(x => x.Update());
|
||||
Folders.Sort((x, y) => x.FolderName.CompareTo(y.FolderName));
|
||||
Size = Folders.Sum(x => x.Size) + Files.Sum(x => x.Length);
|
||||
TotalFileCount = Files.Count + Folders.Sum(x => x.TotalFileCount);
|
||||
TotalFolderCount = Folders.Count + Folders.Sum(x => x.TotalFolderCount);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("ShareX Team")]
|
||||
[assembly: AssemblyProduct("ShareX")]
|
||||
[assembly: AssemblyProduct("ShareX Directory Indexer")]
|
||||
[assembly: AssemblyCopyright("Copyright (c) 2007-2016 ShareX Team")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
|
Loading…
Reference in a new issue