mirror of
https://github.com/ReneLergner/WPinternals.git
synced 2026-06-14 03:16:40 +10:00
Fix an issue with MainOS drive letter recognition
This commit is contained in:
@@ -301,6 +301,12 @@ namespace WPinternals
|
||||
{
|
||||
if (!(CurrentModel is MassStorage))
|
||||
{
|
||||
// Wait 1 second to make sure MainOS is loaded
|
||||
// In case of multiple drive letters being assigned to the phone by the user
|
||||
// MainOS may take a while to show up and we may accidentally catch up a letter that is
|
||||
// not for MainOS.
|
||||
Task.Delay(1000).Wait();
|
||||
|
||||
MassStorage NewModel = new MassStorage(e.DevicePath);
|
||||
|
||||
if (NewModel.Drive != null) // When logical drive is already known, we use this model. Or else we wait for the logical drive to arrive.
|
||||
|
||||
Reference in New Issue
Block a user