We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69a02f1 commit e7c292dCopy full SHA for e7c292d
src/Files.App/Data/Items/LocationItem.cs
@@ -124,9 +124,9 @@ public int CompareTo(INavigationControlItem other)
124
125
public sealed class RecycleBinLocationItem : LocationItem
126
{
127
- public void RefreshSpaceUsed(object sender, FileSystemEventArgs e)
+ public async void RefreshSpaceUsed(object sender, FileSystemEventArgs e)
128
129
- MainWindow.Instance.DispatcherQueue.TryEnqueue(() =>
+ await MainWindow.Instance.DispatcherQueue.EnqueueOrInvokeAsync(() =>
130
131
SpaceUsed = RecycleBinHelpers.GetSize();
132
});
0 commit comments