LibCecSharp: more cosmetics
[deb_libcec.git] / src / cec-config-gui / actions / UpdateConnectedDevice.cs
index 46e9f0c3846ccae89a4374e4b20ba2e6f61beab9..3fb635ba79e598fefc3899d27fc7e4e2f2fce13a 100644 (file)
@@ -1,7 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Text;
-using CecSharp;
+using CecSharp;
 
 namespace CecConfigGui.actions
 {
@@ -42,9 +39,7 @@ namespace CecConfigGui.actions
         SendEvent(UpdateEventType.ProgressBar, 75);
         Lib.GetCurrentConfiguration(config);
 
-        SendEvent(UpdateEventType.PhysicalAddress, config.PhysicalAddress);
-        SendEvent(UpdateEventType.BaseDevice, (int)config.BaseDevice);
-        SendEvent(UpdateEventType.HDMIPort, config.HDMIPort);
+        SendEvent(config);
         SendEvent(UpdateEventType.StatusText, "Ready.");
       }
       SendEvent(UpdateEventType.ProgressBar, 100);