Skip to content

Commit

Permalink
Fix: Fixed crash when right-clicking non-existing drive (#12469)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishitetsu authored May 28, 2023
1 parent 244eb67 commit 9fab836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Files.App/Shell/ContextMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public async Task<bool> InvokeItem(int itemID)

return GetContextMenuForFiles(shellItems.ToArray(), flags, owningThread, itemFilter);
}
catch (Exception ex) when (ex is ArgumentException or FileNotFoundException)
catch
{
// Return empty context menu
return null;
Expand Down

0 comments on commit 9fab836

Please sign in to comment.