With results in the bug of not being able to select a port if you inserted the CAN-USB AFTER startup. If the program isn't attached to a port it should continuously scan for ports and update the UI accordingly. I don't think this is necessary while the program is running and attached to a port.
I believe you should be able to hook into the hover event for the "Choose Port" submenu and just scan everytime that's selected. If that's done, however, the mouse cursor should change to indicate that it's busy.
With results in the bug of not being able to select a port if you inserted the CAN-USB AFTER startup. If the program isn't attached to a port it should continuously scan for ports and update the UI accordingly. I don't think this is necessary while the program is running and attached to a port.
I believe you should be able to hook into the hover event for the "Choose Port" submenu and just scan everytime that's selected. If that's done, however, the mouse cursor should change to indicate that it's busy.