display device port

display the device ports as well closes #141
This commit is contained in:
dj2ls 2022-03-26 10:10:03 +01:00
parent 15217b2521
commit e8869e17dc

View file

@ -1459,7 +1459,7 @@ ipcRenderer.on('action-update-daemon-state', (event, arg) => {
document.getElementById("hamlib_deviceport").innerHTML = "";
for (i = 0; i < arg.serial_devices.length; i++) {
var option = document.createElement("option");
option.text = arg.serial_devices[i]['description'];
option.text = arg.serial_devices[i]['port'] + ' -- ' + arg.serial_devices[i]['description'];
option.value = arg.serial_devices[i]['port'];
// set device from config if available
if(config.deviceport == option.value){