mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Move OS specific command implementation to OS specific device class.
This commit is contained in:
@@ -330,9 +330,9 @@ public sealed class MediaScanViewModel : ViewModelBase
|
||||
|
||||
var dev = Device.Create(_devicePath);
|
||||
|
||||
if(dev.IsRemote)
|
||||
Statistics.AddRemote(dev.RemoteApplication, dev.RemoteVersion, dev.RemoteOperatingSystem,
|
||||
dev.RemoteOperatingSystemVersion, dev.RemoteArchitecture);
|
||||
if(dev is Devices.Remote.Device remoteDev)
|
||||
Statistics.AddRemote(remoteDev.RemoteApplication, remoteDev.RemoteVersion, remoteDev.RemoteOperatingSystem,
|
||||
remoteDev.RemoteOperatingSystemVersion, remoteDev.RemoteArchitecture);
|
||||
|
||||
if(dev.Error)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user