bloguetronica / cp2130-conf

CP2130 Configurator (cp2130-conf) is an application that can be used to configure CP2130 devices, including VID, PID, as well as other descriptors. Most importantly, the application allows you to configure pin functions and states.
GNU General Public License v3.0
1 stars 1 forks source link

Improvement: When opening a device that is already opened by the same application, the corresponding window is brought up #25

Closed samuelfmlourenco closed 1 year ago

samuelfmlourenco commented 1 year ago

Currently, when trying to open a device which is already opened by this same application, a message indicating that the device is currently unavailable appears. However, a more intelligent approach would be to keep track of the devices opened by this application (or rather, instance) and simply bring the corresponding windows up if they are already opened. However, opening a device whose window is partially disabled, would open a new window for that device, as before.

This is feasible and can be implemented. Devices can be tracked via a string that contains the VID, PID and serial number mangled together, thus composing a unique ID. Both the VID and the PID should be encoded in hexadecimal with a fixed length of four digits.

samuelfmlourenco commented 1 year ago

Implemented in version 2.0.