mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
rebased against v2_develop
This commit is contained in:
@@ -590,7 +590,7 @@ public class FileDialog : Dialog
|
||||
{
|
||||
FileSystemInfoStats [] stats = State?.Children ?? new FileSystemInfoStats[0];
|
||||
|
||||
// This portion is never reordered (aways .. at top then folders)
|
||||
// This portion is never reordered (always .. at top then folders)
|
||||
IOrderedEnumerable<FileSystemInfoStats> forcedOrder = stats
|
||||
.OrderByDescending (f => f.IsParent)
|
||||
.ThenBy (f => f.IsDir ? -1 : 100);
|
||||
@@ -670,7 +670,7 @@ public class FileDialog : Dialog
|
||||
return;
|
||||
}
|
||||
|
||||
// Don't include ".." (IsParent) in multiselections
|
||||
// Don't include ".." (IsParent) in multi-selections
|
||||
MultiSelected = toMultiAccept
|
||||
.Where (s => !s.IsParent)
|
||||
.Select (s => s.FileSystemInfo.FullName)
|
||||
|
||||
Reference in New Issue
Block a user