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 deaf5b1 commit fbb098eCopy full SHA for fbb098e
Files/DataModels/SidebarPinnedModel.cs
@@ -84,6 +84,7 @@ public async Task AddItemToSidebar(string path)
84
ex is ArgumentException // Pinned item was invalid
85
|| ex is FileNotFoundException // Pinned item was deleted
86
|| ex is System.Runtime.InteropServices.COMException // Pinned item's drive was ejected
87
+ || (uint)ex.HResult == 0x8007000F // The system cannot find the drive specified
88
|| (uint)ex.HResult == 0x800700A1) // The specified path is invalid (usually an mtp device was disconnected)
89
{
90
Debug.WriteLine("Pinned item was invalid and will be removed from the file lines list soon: " + ex.Message);
0 commit comments