X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=src%2Fcec-config-gui%2FCecConfigGUI.cs;h=b2b6c557038bd60a531073155863e55370363e2a;hb=a70f3777b8fc0cbf4bfb1c1546bc1bae94b60f9d;hp=943ca2e75fc14ef2bb19aa9706d9178b660fa629;hpb=5de1dde470c394fc45791fbb747fdf8ad6e73b2a;p=deb_libcec.git diff --git a/src/cec-config-gui/CecConfigGUI.cs b/src/cec-config-gui/CecConfigGUI.cs index 943ca2e..b2b6c55 100644 --- a/src/cec-config-gui/CecConfigGUI.cs +++ b/src/cec-config-gui/CecConfigGUI.cs @@ -39,14 +39,6 @@ namespace CecConfigGui InitializeComponent(); LoadButtonConfiguration(); - //TODO read the com port setting from the configuration - CecAdapter[] adapters = Lib.FindAdapters(string.Empty); - if (adapters.Length == 0 || !Lib.Open(adapters[0].ComPort, 10000)) - { - MessageBox.Show("Could not connect to any CEC adapter. Please check your configuration and try again.", "Pulse-Eight USB-CEC Adapter", MessageBoxButtons.OK); - Application.Exit(); - } - ActiveProcess = new ConnectToDevice(ref Lib, Config); ActiveProcess.EventHandler += new EventHandler(ProcessEventHandler); (new Thread(new ThreadStart(ActiveProcess.Run))).Start(); @@ -993,7 +985,7 @@ namespace CecConfigGui protected LibCecSharp Lib; private CecCallbackWrapper Callbacks; private UpdateProcess ActiveProcess = null; - private bool SuppressUpdates = false; + private bool SuppressUpdates = true; private ConfigTab SelectedTab = ConfigTab.Configuration; private string Log = string.Empty; #endregion