Skip to content

Commit

Permalink
Update WindowsRecentItemsService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
0x5bfa authored Oct 11, 2024
1 parent 7b37794 commit 9b45856
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Files.App/Services/Windows/WindowsRecentItemsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,19 +245,19 @@ private unsafe bool UpdateRecentItems(bool isFolder)
lock (_RecentFolders)
{
_RecentFolders.Clear();
_RecentFolders.AddRange(orderedRecentItems);
_RecentFolders.AddRange(recentItems);
}
}
else
{
lock (_RecentFiles)
{
_RecentFiles.Clear();
_RecentFiles.AddRange(orderedRecentItems);
_RecentFiles.AddRange(recentItems);
}
}

var eventArgs = GetChangedActionEventArgs(snapshot, orderedRecentItems);
var eventArgs = GetChangedActionEventArgs(snapshot, recentItems);

if (isFolder)
RecentFoldersChanged?.Invoke(this, eventArgs);
Expand Down

0 comments on commit 9b45856

Please sign in to comment.