mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Add remote statistics.
This commit is contained in:
@@ -360,8 +360,9 @@ public partial class DeviceViewModel : ViewModelBase
|
||||
|
||||
var dev = Device.Create(DevicePath, out ErrorNumber devErrno);
|
||||
|
||||
if(dev is null)
|
||||
switch(dev)
|
||||
{
|
||||
case null:
|
||||
AaruLogging.Error(string.Format(UI.Could_not_open_device_error_0, devErrno));
|
||||
|
||||
Dispatcher.UIThread.Invoke(() =>
|
||||
@@ -377,6 +378,14 @@ public partial class DeviceViewModel : ViewModelBase
|
||||
});
|
||||
|
||||
return;
|
||||
case Devices.Remote.Device remoteDev:
|
||||
Statistics.AddRemote(remoteDev.RemoteApplication,
|
||||
remoteDev.RemoteVersion,
|
||||
remoteDev.RemoteOperatingSystem,
|
||||
remoteDev.RemoteOperatingSystemVersion,
|
||||
remoteDev.RemoteArchitecture);
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
if(dev.Error)
|
||||
|
||||
Reference in New Issue
Block a user