You can try this, in Control panel, auto play, under removable drive select 'open folder to view files (windows explorer) and the same if you have camera storage, memory card in the list. At the top tick the box for Use AutoPlay for all media and devices and click on the save tab. If the box is already ticked then un-tick it and save. Close Control panel then reopen and go to auto play again. Tick the box again and save. See if that works.
OnePlus 5 review