cec-config-gui: updated labels, added 'not implemented' warning for the button config...
[deb_libcec.git] / src / cec-config-gui / actions / ShowDeviceInfo.cs
index 61dd35f6461cde35b51914342ec65411c1b7ccb2..a09b3905aa5cdb82d9c284a3a1fcfb4cb33c7e37 100644 (file)
@@ -7,8 +7,9 @@ namespace CecConfigGui.actions
 {
   class ShowDeviceInfo : UpdateProcess
   {
-    public ShowDeviceInfo(ref LibCecSharp lib, CecLogicalAddress address)
+    public ShowDeviceInfo(CecConfigGUI gui, ref LibCecSharp lib, CecLogicalAddress address)
     {
+      Gui = gui;
       Lib = lib;
       Address = address;
     }
@@ -60,14 +61,16 @@ namespace CecConfigGui.actions
 
       SendEvent(UpdateEventType.StatusText, "Showing device information");
       SendEvent(UpdateEventType.ProgressBar, 90);
+      SendEvent(UpdateEventType.ProcessCompleted, true);
 
-      DeviceInformation di = new DeviceInformation(Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage);
+      DeviceInformation di = new DeviceInformation(Gui, Address, ref Lib, devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage);
       di.ShowDialog();
 
       SendEvent(UpdateEventType.StatusText, "Ready.");
       SendEvent(UpdateEventType.ProgressBar, 100);
     }
 
+    private CecConfigGUI Gui;
     private LibCecSharp Lib;
     private CecLogicalAddress Address;
   }