repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CecTray: display a warning if we can't poll the TV
[deb_libcec.git]
/
src
/
LibCecTray
/
controller
/
actions
/
ConnectToDevice.cs
diff --git
a/src/LibCecTray/controller/actions/ConnectToDevice.cs
b/src/LibCecTray/controller/actions/ConnectToDevice.cs
index f2ccfc054f722a9a74d463ed2000313d3bb180ac..6a832c5f9096c48b8ce71b1b9181dbfb3cf687a6 100644
(file)
--- 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);
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);
+ }
+
SendEvent(UpdateEventType.ProgressBar, 100);
SendEvent(UpdateEventType.StatusText, Resources.ready);
}
SendEvent(UpdateEventType.ProgressBar, 100);
SendEvent(UpdateEventType.StatusText, Resources.ready);
}