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 309ec4f commit 6f68c3cCopy full SHA for 6f68c3c
src/Files.App/Data/Models/DrivesViewModel.cs
@@ -103,9 +103,12 @@ public async Task UpdateDrivesAsync()
103
}
104
105
var osDrive = await removableDrivesService.GetPrimaryDriveAsync();
106
+ var osDrivePath = osDrive.Id.EndsWith(Path.DirectorySeparatorChar)
107
+ ? osDrive.Id
108
+ : $"{osDrive.Id}{Path.DirectorySeparatorChar}";
109
110
// Show consent dialog if the OS drive could not be accessed
- if (!Drives.Any(x => Path.GetFullPath(x.Id) == Path.GetFullPath(osDrive.Id)))
111
+ if (Drives.All(x => Path.GetFullPath(x.Id) != osDrivePath))
112
ShowUserConsentOnInit = true;
113
114
if (watcher.CanBeStarted)
0 commit comments