mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 10:04:33 +02:00
Prettified Code!
This commit is contained in:
parent
3193ad1e85
commit
273d4589a5
|
@ -589,19 +589,19 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||||
switch (os.platform().toLowerCase()) {
|
switch (os.platform().toLowerCase()) {
|
||||||
case "darwin":
|
case "darwin":
|
||||||
case "linux":
|
case "linux":
|
||||||
rigctld = rigctld.replace(" ","\\ ");
|
rigctld = rigctld.replace(" ", "\\ ");
|
||||||
break;
|
break;
|
||||||
case "win32":
|
case "win32":
|
||||||
case "win64":
|
case "win64":
|
||||||
if (rigctld.indexOf(" ") > -1)
|
if (rigctld.indexOf(" ") > -1) rigctld = '"' + rigctld + '"';
|
||||||
rigctld = "\"" + rigctld + "\"";
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log("Unhandled OS Platform: ", os.platform());
|
console.log("Unhandled OS Platform: ", os.platform());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rigctld += " " + document.getElementById("hamlib_rigctld_command").value + " -vv";
|
rigctld +=
|
||||||
|
" " + document.getElementById("hamlib_rigctld_command").value + " -vv";
|
||||||
document.getElementById("btnHamlibCopyCommandBi").classList =
|
document.getElementById("btnHamlibCopyCommandBi").classList =
|
||||||
"bi bi-clipboard2-check-fill";
|
"bi bi-clipboard2-check-fill";
|
||||||
clipboard.writeText(rigctld);
|
clipboard.writeText(rigctld);
|
||||||
|
@ -2361,7 +2361,7 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (arg.tnc_running_state != "stopped" && populateSerial == true) return;
|
if (arg.tnc_running_state != "stopped" && populateSerial == true) return;
|
||||||
// UPDATE SERIAL DEVICES
|
// UPDATE SERIAL DEVICES
|
||||||
if (
|
if (
|
||||||
document.getElementById("hamlib_deviceport").length !=
|
document.getElementById("hamlib_deviceport").length !=
|
||||||
arg.serial_devices.length
|
arg.serial_devices.length
|
||||||
|
@ -2446,9 +2446,6 @@ ipcRenderer.on("action-update-daemon-state", (event, arg) => {
|
||||||
document.getElementById("audio_output_selectbox").add(option);
|
document.getElementById("audio_output_selectbox").add(option);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// ACTION UPDATE HAMLIB TEST
|
// ACTION UPDATE HAMLIB TEST
|
||||||
|
|
Loading…
Reference in a new issue