From 9734077bb10f34b2e303f542f762eb4b581bd28d Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Tue, 14 Jan 2020 15:32:29 +0100 Subject: [PATCH] Fix an issue with MainOS drive letter recognition --- ViewModels/PhoneNotifierViewModel.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ViewModels/PhoneNotifierViewModel.cs b/ViewModels/PhoneNotifierViewModel.cs index e8a591e..db11064 100644 --- a/ViewModels/PhoneNotifierViewModel.cs +++ b/ViewModels/PhoneNotifierViewModel.cs @@ -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.