Skip to content

Commit 1f2229f

Browse files
committed
Update
1 parent a594ad7 commit 1f2229f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Files.App/Data/Items/ListedItem.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ public FtpItem(FtpListItem item, string folder) : base(null)
501501

502502
public async Task<IStorageItem> ToStorageItem() => PrimaryItemAttribute switch
503503
{
504-
StorageItemTypes.File => await new FtpStorageFile(ItemPath, ItemNameRaw, ItemDateCreatedReal).ToStorageFileAsync(),
505-
StorageItemTypes.Folder => new FtpStorageFolder(ItemPath, ItemNameRaw, ItemDateCreatedReal),
504+
StorageItemTypes.File => await new Utils.Storage.FtpStorageFile(ItemPath, ItemNameRaw, ItemDateCreatedReal).ToStorageFileAsync(),
505+
StorageItemTypes.Folder => new Utils.Storage.FtpStorageFolder(ItemPath, ItemNameRaw, ItemDateCreatedReal),
506506
_ => throw new InvalidDataException(),
507507
};
508508
}

src/Files.App/Data/Items/LocationItem.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ public RecycleBinLocationItem()
154154
{
155155
SpaceUsed = WindowsRecycleBinService.GetSize();
156156

157-
WindowsRecycleBinService.ItemAdded += RefreshSpaceUsed;
158-
WindowsRecycleBinService.ItemDeleted += RefreshSpaceUsed;
157+
WindowsRecycleBinService.Watcher.ItemAdded += RefreshSpaceUsed;
158+
WindowsRecycleBinService.Watcher.ItemDeleted += RefreshSpaceUsed;
159159
}
160160
}
161161
}

0 commit comments

Comments
 (0)