Prevent error if rig control data isn't populated

This commit is contained in:
Mashintime 2023-01-27 01:55:16 -05:00
parent f4f0e921d6
commit e28c6d5b54

View file

@ -2766,7 +2766,10 @@ function checkRigctld(){
ip: rigctld_ip,
port: rigctld_port
};
ipcRenderer.send('request-check-rigctld', Data);
//Prevents an error on startup if hamlib settings aren't populated yet
if (!isNaN(rigctld_port))
ipcRenderer.send('request-check-rigctld', Data);
}
ipcRenderer.on('action-check-rigctld', (event, data) => {