mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Use Create method for creating Device class.
This commit is contained in:
@@ -328,7 +328,7 @@ public sealed class MediaScanViewModel : ViewModelBase
|
||||
char.IsLetter(_devicePath[0]))
|
||||
_devicePath = "\\\\.\\" + char.ToUpper(_devicePath[0]) + ':';
|
||||
|
||||
var dev = new Device(_devicePath);
|
||||
var dev = Device.Create(_devicePath);
|
||||
|
||||
if(dev.IsRemote)
|
||||
Statistics.AddRemote(dev.RemoteApplication, dev.RemoteVersion, dev.RemoteOperatingSystem,
|
||||
|
||||
Reference in New Issue
Block a user