Skip to content

Commit 1727863

Browse files
authored
Do not block while loading drive properties (#7464)
1 parent 3cb8188 commit 1727863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files/DataModels/NavigationControlItems/DriveItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public static async Task<DriveItem> CreateFromPropertiesAsync(StorageFolder root
145145
item.Path = string.IsNullOrEmpty(root.Path) ? $"\\\\?\\{root.Name}\\" : root.Path;
146146
item.DeviceID = deviceId;
147147
item.Root = root;
148-
await CoreApplication.MainView.DispatcherQueue.EnqueueAsync(() => item.UpdatePropertiesAsync());
148+
_ = CoreApplication.MainView.DispatcherQueue.EnqueueAsync(() => item.UpdatePropertiesAsync());
149149

150150
return item;
151151
}

0 commit comments

Comments
 (0)