Skip to content

Commit f6ea42e

Browse files
committed
Update FolderProperties.cs
1 parent b05852a commit f6ea42e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Files.App/ViewModels/Properties/Items/FolderProperties.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,11 @@ public async override Task GetSpecialPropertiesAsync()
111111
{
112112
ViewModel.ItemCreatedTimestampReal = storageFolder.DateCreated;
113113
if (storageFolder.Properties is not null)
114-
{
115114
GetOtherPropertiesAsync(storageFolder.Properties);
116-
}
117-
GetFolderSizeAsync(storageFolder.Path, TokenSource.Token);
115+
116+
// Only load the size for items on the device
117+
if (Item.SyncStatusUI.SyncStatus != CloudDriveSyncStatus.FileOnline)
118+
GetFolderSizeAsync(storageFolder.Path, TokenSource.Token);
118119
}
119120
else if (Item.ItemPath.Equals(Constants.UserEnvironmentPaths.RecycleBinPath, StringComparison.OrdinalIgnoreCase))
120121
{

0 commit comments

Comments
 (0)