wtf????
This commit is contained in:
2019-05-19 22:18:38 +08:00
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ namespace FileManager_UWP.Service {
//var virtualFolderName = path.Substring(0, path.LastIndexOf('\\'));
//path = path.Substring(path.LastIndexOf('\\'));
var directoryName = Path.GetDirectoryName(path);
var virtualFolderName = path.Substring(path.LastIndexOf('\\'));
var virtualFolderName = path.Substring(path.LastIndexOf('\\') + 1);
if (directoryName == null)
throw new FileNotFoundException();
@@ -97,7 +97,7 @@ namespace FileManager_UWP.Service {
foreach (var virtualFolder in folderSetting.VirtualFolders) {
displayFileFolderItems.Add(new DisplayableSpecial(
virtualFolder.Name,
folder.Path + "//" + virtualFolder.Name,
folder.Path + "\\" + virtualFolder.Name,
Type.VirtualFolder,
await IconServer.GetFolderIcon(ThumbnailMode.ListView, 32)));
}
@@ -38,6 +38,7 @@ namespace FileManager_UWP.View {
sp.Height = 44;
sp.Padding = new Windows.UI.Xaml.Thickness(12);
sp.Orientation = Orientation.Horizontal;
// TODO:滥用Tag
sp.SetValue(StackPanel.TagProperty, displayFileItem);
Image Icon = new Image();