cec-config-gui: make the progress bar invisible when done. disable the physical addre...
[deb_libcec.git] / src / cec-config-gui / actions / RescanDevices.cs
CommitLineData
6d866874
LOK
1using CecSharp;
2using System.Windows.Forms;
3
4namespace CecConfigGui.actions
5{
6 class RescanDevices : UpdateProcess
7 {
8 public override void Process()
9 {
10 SendEvent(UpdateEventType.ProgressBar, 10);
11 SendEvent(UpdateEventType.StatusText, "Polling active devices");
12 SendEvent(UpdateEventType.PollDevices);
13
14 SendEvent(UpdateEventType.ProgressBar, 100);
15 SendEvent(UpdateEventType.StatusText, "Ready.");
16 }
17 }
18}