jankae / LibreVNA

100kHz to 6GHz 2 port USB based VNA
GNU General Public License v3.0
1.13k stars 210 forks source link

app: refactor enable connect to #139

Closed sophiekovalevsky closed 2 years ago

sophiekovalevsky commented 2 years ago

Instead of enabling multiple times "connect to" by iterating over device list, let's use a flag that determine when at least one device was found. In that way, the enabling method is executed once.