X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2FLibCecTray%2Fcontroller%2Factions%2FConnectToDevice.cs;h=fa785916b1c610abd29c5916ff7418fce2f2b93f;hb=0b558f37cb9865e01e42aa617d89f3dd10362744;hp=f2ccfc054f722a9a74d463ed2000313d3bb180ac;hpb=16f47961800432dbdd5b3ead717908f383d26d6b;p=deb_libcec.git diff --git a/src/LibCecTray/controller/actions/ConnectToDevice.cs b/src/LibCecTray/controller/actions/ConnectToDevice.cs index f2ccfc0..fa78591 100644 --- a/src/LibCecTray/controller/actions/ConnectToDevice.cs +++ b/src/LibCecTray/controller/actions/ConnectToDevice.cs @@ -108,6 +108,11 @@ namespace LibCECTray.controller.actions SendEvent(UpdateEventType.StatusText, Resources.action_polling_active_devices); SendEvent(UpdateEventType.PollDevices); + if (!_lib.IsActiveDevice(CecLogicalAddress.Tv)) + { + MessageBox.Show(Resources.alert_tv_poll_failed, Resources.cec_alert, MessageBoxButtons.OK, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly); + } + SendEvent(UpdateEventType.ProgressBar, 100); SendEvent(UpdateEventType.StatusText, Resources.ready); }