cec-config-gui: fixed application exit when the user clicked 'no' when asked to recon...
[deb_libcec.git] / src / cec-config-gui / actions / UpdateDeviceInfo.cs
CommitLineData
a42ad439 1using CecSharp;
6d866874
LOK
2
3namespace CecConfigGui.actions
4{
5 class UpdateDeviceInfo : ShowDeviceInfo
6 {
7 public UpdateDeviceInfo(CecConfigGUI gui, ref LibCecSharp lib, DeviceInformation dialog) :
8 base(gui, ref lib, dialog.Address)
9 {
10 Dialog = dialog;
11 }
12
13 public override void ShowDialog(CecConfigGUI gui, CecLogicalAddress address, ref LibCecSharp lib,
14 bool devicePresent, CecVendorId vendor, bool isActiveSource, ushort physicalAddress,
15 CecVersion version, CecPowerStatus power, string osdName, string menuLanguage)
16 {
17 Dialog.Update(devicePresent, vendor, isActiveSource, physicalAddress, version, power, osdName, menuLanguage);
18 }
19
20 private DeviceInformation Dialog;
21 }
22}